Property | Type | Description | |
---|---|---|---|
$compiler | |||
$configurationManager | |||
$objectConfigurations | array |
||
$objectManager | |||
$reflectionService | |||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 | ||
return | 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 |
return | 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. |
return | string |
protected buildLifecycleShutdownCode ( |
||
$objectConfiguration | ||
return | string |
protected buildMethodParametersCode ( array $argumentConfigurations ) : string | ||
$argumentConfigurations | array | |
return | string |
protected buildPropertyInjectionCode ( |
||
$objectConfiguration | (needed to produce helpful exception message) | |
return | 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 | |
return | 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 |
return | 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 |
return | array | PHP code |
protected buildSerializeRelatedEntitiesCode ( |
||
$objectConfiguration | ||
return | string |
protected buildSetInstanceCode ( |
||
$objectConfiguration | ||
return | 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 |
return | array | PHP code |
protected compileStaticMethods ( string $className, |
||
$className | string | |
$proxyClass | ||
return | void |
public injectCompiler ( |
||
$compiler | ||
return | void |
public injectConfigurationManager ( |
||
$configurationManager | ||
return | void |
public injectObjectManager ( |
||
$objectManager | ||
return | void |
public injectReflectionService ( |
||
$reflectionService | ||
return | void |
public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void | ||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | |
return | void |
protected Compiler,Neos\Flow\ObjectManagement\Proxy $compiler | ||
return |
protected ConfigurationManager,Neos\Flow\Configuration $configurationManager | ||
return |
protected CompileTimeObjectManager,Neos\Flow\ObjectManagement $objectManager | ||
return |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
return |