Property | Type | Description | |
---|---|---|---|
$_classes | array | Class dependencies. | |
$_definitions | array | The defined dependency definitions |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) | The Constructor. | |
clear ( ) | Clears all dependency definitions. | |
factory ( $name, string | Closur\Closure $definition ) | Defining a factory. | |
get ( string $name ) : mixed | Gets a shared variable or an new instance. | |
has ( $name ) : boolean | Checks if a dependency definition exists. | |
remove ( string $name ) | Removes a dependency definition. | |
service ( $name, mixed $definition ) | Defining a service (i.e. singleton). | |
wrap ( string $name ) : mixed | Returns a dependency container. |
Method | Description | |
---|---|---|
_factory ( mixed $definition, array $params ) : mixed | Process a setted definition. | |
_service ( string $name, mixed $definition, array $params ) : mixed | Process a shared definition. | |
_set ( $name, mixed $definition, mixed $type ) | Stores a dependency definition. |
public __construct ( array $config = [] ) | ||
$config | array | The instance configuration. Possible values: - `'wrapper'` _string_: the the wrapper class name to use. |
protected array $_definitions | ||
return | array |