Méthode | Description | |
---|---|---|
__construct ( DI\Definition\Source\DefinitionSource $definitionSource, |
Use the ContainerBuilder to ease constructing the Container. | |
call ( callable $callable, array $parameters = [] ) : mixed | Call the given function using the given parameters. | |
get ( string $name ) : mixed | Returns an entry of the container by its name. | |
has ( string $name ) : boolean | Test if the container can provide something for the given name. | |
injectOn ( object $instance ) : object | Inject all dependencies on an existing instance. | |
make ( string $name, array $parameters = [] ) : mixed | Build an entry of the container by its name. | |
set ( string $name, mixed | DI\Definition\Helper\DefinitionHelper $value ) | Define an object or a value in the container. |
Méthode | Description | |
---|---|---|
getInvoker ( ) : Invoker\InvokerInterface | ||
resolveDefinition ( DI\Definition\Definition $definition, array $parameters = [] ) : mixed | Resolves a definition. | |
setDefinition ( $name, DI\Definition\Definition $definition ) |
public __construct ( DI\Definition\Source\DefinitionSource $definitionSource, |
||
$definitionSource | DI\Definition\Source\DefinitionSource | |
$proxyFactory | ||
$wrapperContainer | Interop\Container\ContainerInterface | If the container is wrapped by another container. |
public call ( callable $callable, array $parameters = [] ) : mixed | ||
$callable | callable | Function to call. |
$parameters | array | Parameters to use. Can be indexed by the parameter names or not indexed (same order as the parameters). The array can also contain DI definitions, e.g. DI\get(). |
Résultat | mixed | Result of the function. |
public make ( string $name, array $parameters = [] ) : mixed | ||
$name | string | Entry name or a class name. |
$parameters | array | Optional parameters to use to build the entry. Use this to force specific parameters to specific values. Parameters not defined in this array will be resolved using the container. |
Résultat | mixed |