프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 | ||
리턴 |