__construct()
getCodeGenerator()
setContainerClass()
setNamespace()
getCodeGenMethodFromAlias()
normalizeAlias()
reduceAliases()
$containerClass
$injector
$namespace
Generator that creates the body of a service locator that can emulate the logic of the given Zend\Di\Di instance without class definitions
__construct(\Zend\Di\Di $injector)
getCodeGenerator(null | string $filename) : \Zend\Code\Generator\FileGenerator
Creates a Zend\Code\Generator\FileGenerator object that has created the specified class and service locator methods.
nullstring
\Zend\Di\Exception\RuntimeException |
---|
setContainerClass(string $name) : \Zend\Di\ServiceLocator\Generator
setNamespace(string $namespace) : \Zend\Di\ServiceLocator\Generator
getCodeGenMethodFromAlias(string $alias, string $class) : \Zend\Code\Generator\MethodGenerator
string
string
Class to which alias refers
normalizeAlias(string $alias) : string
string
string
reduceAliases(array $aliasList) : array
Takes alias list and reduces it to a 2-dimensional array of class names pointing to an array of aliases that resolve to it.
array
array
$containerClass
$namespace : null | string