Свойство | Тип | Описание | |
---|---|---|---|
$compiler | |||
$reflectionService |
Метод | Описание | |
---|---|---|
build ( string $methodName, array $methodMetaInformation, string $targetClassName ) : string | Builds method interception PHP code | |
injectCompiler ( |
||
injectReflectionService ( |
Injects the reflection service |
Метод | Описание | |
---|---|---|
buildAdvicesCode ( array $groupedAdvices, string $methodName, string $targetClassName, string $declaringClassName ) : string | Builds the advice interception code, to be used in a method interceptor. | |
buildArraySetupCode ( array $array ) : string | Builds a string containing PHP code to build the array given as input. | |
buildMethodArgumentsArrayCode ( string $className, string $methodName, boolean $useArgumentsArray = false ) : string | Builds the PHP code for the method arguments array which is passed to the constructor of a new join point. Used in the method interceptor functions. | |
buildSavedConstructorParametersCode ( string $className ) : string | Generates the parameters code needed to call the constructor with the saved parameters. |
abstract public build ( string $methodName, array $methodMetaInformation, string $targetClassName ) : string | ||
$methodName | string | Name of the method to build an interceptor for |
$methodMetaInformation | array | An array of method names and their meta information, including advices for the method (if any) |
$targetClassName | string | Name of the target class to build the interceptor for |
Результат | string | PHP code of the interceptor |
protected buildAdvicesCode ( array $groupedAdvices, string $methodName, string $targetClassName, string $declaringClassName ) : string | ||
$groupedAdvices | array | The advices grouped by advice type |
$methodName | string | Name of the method the advice applies to |
$targetClassName | string | Name of the target class |
$declaringClassName | string | Name of the declaring class. This is usually the same as the $targetClassName. However, it is the introduction interface for introduced methods. |
Результат | string | PHP code to be used in the method interceptor |
protected buildArraySetupCode ( array $array ) : string | ||
$array | array | |
Результат | string | e.g. 'array()' or 'array(1 => 'bar') |
protected buildMethodArgumentsArrayCode ( string $className, string $methodName, boolean $useArgumentsArray = false ) : string | ||
$className | string | Name of the declaring class of the method |
$methodName | string | Name of the method to create arguments array code for |
$useArgumentsArray | boolean | If set, the $methodArguments array will be built from $arguments instead of using the actual parameter variables. |
Результат | string | The generated code to be used in an "array()" definition |
protected buildSavedConstructorParametersCode ( string $className ) : string | ||
$className | string | Name of the class the method is declared in |
Результат | string | The generated parameters code |
public injectCompiler ( |
||
$compiler | ||
Результат | void |
public injectReflectionService ( |
||
$reflectionService | The reflection service | |
Результат | void |
protected Compiler,Neos\Flow\ObjectManagement\Proxy $compiler | ||
Результат |