Class definitions based on a set of directories to be scanned

package Default

 Methods

Constructor

__construct(null|\Zend\Di\Definition\IntrospectionStrategy $introspectionStrategy = null

Parameters

$introspectionStrategy

null\Zend\Di\Definition\IntrospectionStrategy

Add code scanner file

addCodeScannerFile(\Zend\Code\Scanner\FileScanner $fileScanner) 

Parameters

$fileScanner

\Zend\Code\Scanner\FileScanner

Add directory

addDirectory(string $directory) 

Parameters

$directory

string

Add directory scanner

addDirectoryScanner(\Zend\Code\Scanner\DirectoryScanner $directoryScanner) 

Parameters

$directoryScanner

\Zend\Code\Scanner\DirectoryScanner

Compile

compile() : void

Return the supertypes for this class

getClassSupertypes(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::getClassSupertypes()

Parameters

$class

Retrieves classes in this definition

getClasses() 
inherited_from \Zend\Di\Definition\DefinitionInterface::getClasses()

getInstantiator()

getInstantiator(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::getInstantiator()

Parameters

$class

Get introspection strategy

getIntrospectionStrategy() : \Zend\Di\Definition\IntrospectionStrategy

Returns

\Zend\Di\Definition\IntrospectionStrategy

getMethodParameters() return information about a methods parameters.

getMethodParameters(string $class, string $method) 

Should return an ordered named array of parameters for a given method. Each value should be an array, of length 4 with the following information:

array( 0, // string|null: Type Name (if it exists) 1, // bool: whether this param is required 2, // string: fully qualified path to this parameter 3, // mixed: default value );

inherited_from \Zend\Di\Definition\DefinitionInterface::getMethodParameters()

Parameters

$class

$method

Return an array of the injection methods for a given class

getMethods(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::getMethods()

Parameters

$class

Return whether the class exists in this definition

hasClass(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasClass()

Parameters

$class

hasMethod()

hasMethod(string $class, string $method) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasMethod()

Parameters

$class

$method

hasMethodParameters()

hasMethodParameters($class, $method) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasMethodParameters()

Parameters

$class

$method

Return if there are injection methods

hasMethods(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasMethods()

Parameters

$class

setAllowReflectionExceptions()

setAllowReflectionExceptions(boolean $allowReflectionExceptions = true

Parameters

$allowReflectionExceptions

boolean

Set introspection strategy

setIntrospectionStrategy(\Zend\Di\Definition\IntrospectionStrategy $introspectionStrategy) 

Parameters

$introspectionStrategy

\Zend\Di\Definition\IntrospectionStrategy

toArrayDefinition()

toArrayDefinition() : \Zend\Di\Definition\ArrayDefinition

Returns

\Zend\Di\Definition\ArrayDefinition

processClass()

processClass(string $class) 

Parameters

$class

string

Exceptions

\ReflectionException

processParams()

processParams(array $def, \Zend\Code\Reflection\ClassReflection $rClass, \Zend\Code\Reflection\MethodReflection $rMethod) 

Parameters

$def

array

$rClass

\Zend\Code\Reflection\ClassReflection

$rMethod

\Zend\Code\Reflection\MethodReflection

 Properties

 

$allowReflectionExceptions

$allowReflectionExceptions 

Default

false
 

$classes

$classes 

Default

array()
 

$directoryScanner

$directoryScanner : \Zend\Code\Scanner\AggregateDirectoryScanner

Default

null
 

$introspectionStrategy

$introspectionStrategy 

Default

null
 

$isCompiled

$isCompiled 

Default

false