|
| __construct (Di $di, ContainerInterface $container, DiInstanceManagerProxy $diInstanceManagerProxy=null) |
|
| __invoke ($first, $second) |
| Initialize an instance via zend-di.
|
|
| __construct (DefinitionList $definitions=null, InstanceManager $instanceManager=null, Config $config=null) |
| Constructor.
|
|
| configure (Config $config) |
| Provide a configuration object to configure this instance.
|
|
| setDefinitionList (DefinitionList $definitions) |
|
| definitions () |
|
| setInstanceManager (InstanceManager $instanceManager) |
| Set the instance manager.
|
|
| instanceManager () |
|
| has ($name) |
| Is the DI container capable of returning the named instance?
|
|
| get ($name, array $params=[]) |
| Lazy-load a class.
|
|
| newInstance ($name, array $params=[], $isShared=true) |
| Retrieve a new instance of a class.
|
|
| injectDependencies ($instance, array $params=[]) |
| Inject dependencies.
|
|
| newInstance ($name, array $params=[]) |
| Retrieve a new instance of a class.
|
|
|
const | RESOLVE_EAGER = 1 |
| Resolve method policy.
|
|
const | RESOLVE_STRICT = 2 |
| Resolve method policy.
|
|
const | METHOD_IS_OPTIONAL = 0 |
| use only specified parameters
|
|
const | METHOD_IS_AWARE = 1 |
| resolve mode RESOLVE_EAGER
|
|
const | METHOD_IS_CONSTRUCTOR = 3 |
| resolve mode RESOLVE_EAGER | RESOLVE_STRICT
|
|
const | METHOD_IS_INSTANTIATOR = 3 |
| resolve mode RESOLVE_EAGER | RESOLVE_STRICT
|
|
const | METHOD_IS_REQUIRED = 3 |
| resolve mode RESOLVE_EAGER | RESOLVE_STRICT
|
|
const | METHOD_IS_EAGER = 1 |
| resolve mode RESOLVE_EAGER
|
|
| getClass ($instance) |
| Utility method used to retrieve the class of a particular instance.
|
|
| getCallParameters ($name, array $params, $method="__construct") |
|
| handleInjectDependencies ($instance, $injectionMethods, $params, $instanceClass, $instanceAlias, $requestedName) |
|
| createInstanceViaConstructor ($class, $params, $alias=null) |
| Retrieve a class instance based on class name.
|
|
| createInstanceViaCallback ($callback, $params, $alias) |
| Get an object instance from the defined callback.
|
|
| resolveAndCallInjectionMethodForInstance ($instance, $method, $params, $alias, $methodRequirementType, $methodClass=null) |
| This parameter will handle any injection methods and resolution of dependencies for such methods.
|
|
| resolveMethodParameters ($class, $method, array $callTimeUserParams, $alias, $methodRequirementType, $isInstantiator=false) |
| Resolve parameters referencing other services.
|
|
static | isSubclassOf ($className, $type) |
| Checks if the object has this class as one of its parents.
|
|