Class definitions based on a set of directories to be scanned

 Methods

Constructor

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

Parameters

$introspectionStrategy

null\Zend\Di\Definition\IntrospectionStrategy

Add code scanner file

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

Parameters

Add directory

addDirectory(string $directory) 

Parameters

$directory

string

Add directory scanner

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

Parameters

Compile

compile() : void

Return the supertypes for this class

getClassSupertypes(string $class) : string[]

Parameters

$class

string

Returns

string[]

Retrieves classes in this definition

getClasses() : string[]

Returns

string[]

getInstantiator()

getInstantiator(string $class) : string | array

Parameters

$class

string

Returns

stringarray

Get introspection strategy

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

getMethodParameters() return information about a methods parameters.

getMethodParameters(string $class, string $method) : array

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 );

Parameters

$class

string

$method

string

Returns

array

Return an array of the injection methods for a given class

getMethods(string $class) : string[]

Parameters

$class

string

Returns

string[]

Return whether the class exists in this definition

hasClass(string $class) : bool

Parameters

$class

string

Returns

bool

hasMethod()

hasMethod(string $class, string $method) : bool

Parameters

$class

string

$method

string

Returns

bool

hasMethodParameters()

hasMethodParameters($class, $method) : bool

Parameters

$class

$method

Returns

bool

Return if there are injection methods

hasMethods(string $class) : bool

Parameters

$class

string

Returns

bool

setAllowReflectionExceptions()

setAllowReflectionExceptions(bool $allowReflectionExceptions) 

Parameters

$allowReflectionExceptions

bool

Set introspection strategy

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

Parameters

toArrayDefinition()

toArrayDefinition() : \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) 

 Properties

 

$allowReflectionExceptions

$allowReflectionExceptions 

 

$classes

$classes 

 

$directoryScanner

$directoryScanner : \Zend\Code\Scanner\AggregateDirectoryScanner

 

$introspectionStrategy

$introspectionStrategy 

 

$isCompiled

$isCompiled