addAlias()
addSharedInstance()
addSharedInstanceWithParameters()
addTypePreference()
getAliases()
getClassFromAlias()
getClasses()
getConfig()
getSharedInstance()
getSharedInstanceWithParameters()
getTypePreferences()
hasAlias()
hasConfig()
hasSharedInstance()
hasSharedInstanceWithParameters()
hasTypePreferences()
removeTypePreference()
setConfig()
setInjections()
setParameters()
setShared()
setTypePreference()
unsetTypePreferences()
createHashForKeys()
createHashForValues()
getBaseAlias()
$aliases
$configurationTemplate
$configurations
$sharedInstances
$sharedInstancesWithParams
$typePreferences
Registry of instantiated objects, their names and the parameters used to build them
addAlias(string $alias, string $class, array $parameters) : void
string
string
array
\Zend\Di\Exception\InvalidArgumentException |
---|
addSharedInstance(object $instance, string $classOrAlias)
object
string
\Zend\Di\Exception\InvalidArgumentException |
---|
addSharedInstanceWithParameters(object $instance, string $classOrAlias, array $params) : void
object
string
array
addTypePreference(string $interfaceOrAbstract, string $preferredImplementation) : \Zend\Di\self
A type preference is a redirection to a preferred alias or type when an abstract type $interfaceOrAbstract is requested
string
string
\Zend\Di\self
getAliases() : array
array
getClassFromAlias($alias) : string | bool
getClasses() : array
array
getConfig(string $aliasOrClass) : array
string
array
getSharedInstance($classOrAlias)
getSharedInstanceWithParameters(string $classOrAlias, array $params, bool | null $fastHashFromHasLookup) : object | bool
string
array
boolnull
object
bool
false if no instance was foundgetTypePreferences(string $interfaceOrAbstract) : array
string
array
hasAlias(string $alias) : bool
string
bool
hasConfig(string $aliasOrClass) : bool
string
bool
hasSharedInstance(string $classOrAlias) : bool
string
bool
hasSharedInstanceWithParameters(string $classOrAlias, array $params, bool $returnFastHashLookupKey) : bool | string
string
array
bool
bool
string
hasTypePreferences(string $interfaceOrAbstract) : bool
string
bool
removeTypePreference(string $interfaceOrAbstract, string $preferredType) : bool | \Zend\Di\self
string
string
bool
\Zend\Di\self
setConfig(string $aliasOrClass, array $configuration, bool $append)
string
array
bool
setInjections(string $aliasOrClass, array $injections) : void
..)), true);
string
Alias or Class
array
Multi-dim array of methods and their parameters
setParameters(string $aliasOrClass, array $parameters) : void
..)), true);
string
Alias or Class
array
Multi-dim array of parameters and their values
setShared(string $aliasOrClass, bool $isShared) : void
string
bool
setTypePreference(string $interfaceOrAbstract, array $preferredImplementations) : \Zend\Di\InstanceManager
string
array
unsetTypePreferences(string $interfaceOrAbstract) : void
string
createHashForKeys(string $classOrAlias, string[] $paramKeys) : string
string
string[]
string
createHashForValues(string $classOrAlias, array $paramValues) : string
string
array
string
getBaseAlias(string $alias) : string | bool
$aliases : array
$configurationTemplate : array
$configurations : array
$sharedInstances : array
$sharedInstancesWithParams : array
$typePreferences : array