Свойство | Тип | Описание | |
---|---|---|---|
$compiler | |||
$configurationManager | |||
$objectConfigurations | array |
||
$objectManager | |||
$reflectionService | |||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface |
Метод | Описание | |
---|---|---|
build ( ) : void | Analyzes the Object Configuration provided by the compiler and builds the necessary PHP code for the proxy classes to realize dependency injection. | |
buildPropertyInjectionCodeByConfigurationTypeAndPath ( |
Builds code which assigns the value stored in the specified configuration into the given class property. | |
buildPropertyInjectionCodeByString ( |
Builds code which injects an object which was specified by its object name | |
injectCompiler ( |
||
injectConfigurationManager ( |
||
injectObjectManager ( |
||
injectReflectionService ( |
||
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void |
Метод | Описание | |
---|---|---|
buildConstructorInjectionCode ( |
Renders additional code for the __construct() method of the Proxy Class which realizes constructor injection. | |
buildCustomFactoryCall ( string $customFactoryObjectName, string $customFactoryMethodName, array $arguments ) : string | ||
buildLazyPropertyInjectionCode ( string $propertyObjectName, string $propertyClassName, string $propertyName, string $preparedSetterArgument ) : array | Builds code which injects a DependencyProxy instead of the actual dependency | |
buildLifecycleInitializationCode ( |
Builds code which calls the lifecycle initialization method, if any. | |
buildLifecycleShutdownCode ( |
Builds code which registers the lifecycle shutdown method, if any. | |
buildMethodParametersCode ( array $argumentConfigurations ) : string | FIXME: Not yet completely refactored to new proxy mechanism | |
buildPropertyInjectionCode ( |
Builds the code necessary to inject setter based dependencies. | |
buildPropertyInjectionCodeByConfiguration ( |
Builds code which injects an object which was specified by its object configuration | |
buildSerializeRelatedEntitiesCode ( |
Renders code to create identifier/type information from related entities in an object. | |
buildSetInstanceCode ( |
Renders additional code which registers the instance of the proxy class at the Object Manager before constructor injection is executed. Used in constructors and wakeup methods. | |
buildSetterInjectionCode ( string $className, string $propertyName, string $preparedSetterArgument ) : array | Builds a code snippet which tries to inject the specified property first through calling the related inject*() method and then the set*() method. If neither exists and the property doesn't exist either, an empty array is returned. | |
compileStaticMethods ( string $className, |
Compile the result of methods marked with CompileStatic into the proxy class |
protected buildConstructorInjectionCode ( |
||
$objectConfiguration | ||
Результат | string | The built code |
protected buildLazyPropertyInjectionCode ( string $propertyObjectName, string $propertyClassName, string $propertyName, string $preparedSetterArgument ) : array | ||
$propertyObjectName | string | Object name of the dependency to inject |
$propertyClassName | string | Class name of the dependency to inject |
$propertyName | string | Name of the property in the class to inject into |
$preparedSetterArgument | string | PHP code to use for retrieving the value to inject |
Результат | array | PHP code |
protected buildLifecycleInitializationCode ( |
||
$objectConfiguration | ||
$cause | integer | a \Neos\Flow\ObjectManagement\ObjectManagerInterface::INITIALIZATIONCAUSE_* constant which is the cause of the initialization command being called. |
Результат | string |
protected buildLifecycleShutdownCode ( |
||
$objectConfiguration | ||
Результат | string |
protected buildMethodParametersCode ( array $argumentConfigurations ) : string | ||
$argumentConfigurations | array | |
Результат | string |
protected buildPropertyInjectionCode ( |
||
$objectConfiguration | (needed to produce helpful exception message) | |
Результат | string | The built code |
protected buildPropertyInjectionCodeByConfiguration ( |
||
$objectConfiguration | Configuration of the object to inject into | |
$propertyName | string | Name of the property to inject |
$propertyConfiguration | Configuration of the object to inject | |
Результат | array | PHP code |
public buildPropertyInjectionCodeByConfigurationTypeAndPath ( |
||
$objectConfiguration | Configuration of the object to inject into | |
$propertyName | string | Name of the property to inject |
$configurationType | string | the configuration type of the injected property (one of the ConfigurationManager::CONFIGURATION_TYPE_* constants) |
$configurationPath | string | Path with "." as separator specifying the setting value to inject or NULL if the complete configuration array should be injected |
Результат | array | PHP code |
public buildPropertyInjectionCodeByString ( |
||
$objectConfiguration | Configuration of the object to inject into | |
$propertyConfiguration | Neos\Flow\ObjectManagement\Configuration\ConfigurationProperty | |
$propertyName | string | Name of the property to inject |
$propertyObjectName | string | Object name of the object to inject |
Результат | array | PHP code |
protected buildSerializeRelatedEntitiesCode ( |
||
$objectConfiguration | ||
Результат | string |
protected buildSetInstanceCode ( |
||
$objectConfiguration | ||
Результат | string |
protected buildSetterInjectionCode ( string $className, string $propertyName, string $preparedSetterArgument ) : array | ||
$className | string | Name of the class to inject into |
$propertyName | string | Name of the property to inject |
$preparedSetterArgument | string | PHP code to use for retrieving the value to inject |
Результат | array | PHP code |
protected compileStaticMethods ( string $className, |
||
$className | string | |
$proxyClass | ||
Результат | void |
public injectCompiler ( |
||
$compiler | ||
Результат | void |
public injectConfigurationManager ( |
||
$configurationManager | ||
Результат | void |
public injectObjectManager ( |
||
$objectManager | ||
Результат | void |
public injectReflectionService ( |
||
$reflectionService | ||
Результат | void |
public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void | ||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | |
Результат | void |
protected Compiler,Neos\Flow\ObjectManagement\Proxy $compiler | ||
Результат |
protected ConfigurationManager,Neos\Flow\Configuration $configurationManager | ||
Результат |
protected CompileTimeObjectManager,Neos\Flow\ObjectManagement $objectManager | ||
Результат |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
Результат |