PHP 클래스 Neos\Flow\ObjectManagement\Configuration\ConfigurationBuilder

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$reflectionService Neos\Flow\Reflection\ReflectionService
$systemLogger Neos\Flow\Log\SystemLoggerInterface

공개 메소드들

메소드 설명
buildObjectConfigurations ( array $availableClassAndInterfaceNamesByPackage, array $rawObjectConfigurationsByPackages ) : array Traverses through the given class and interface names and builds a base object configuration for all of them. Then parses the provided extra configuration and merges the result into the overall configuration. Finally autowires dependencies of arguments and properties which can be resolved automatically.
injectReflectionService ( ReflectionService $reflectionService ) : void
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void

보호된 메소드들

메소드 설명
autowireArguments ( array &$objectConfigurations ) : void If mandatory constructor arguments have not been defined yet, this function tries to autowire them if possible.
autowireProperties ( array &$objectConfigurations ) : void This function tries to find yet unmatched dependencies which need to be injected via "inject*" setter methods.
enhanceRawConfigurationWithAnnotationOptions ( string $className, array $rawObjectConfiguration ) : array Builds a raw configuration array by parsing possible scope and autowiring annotations from the given class or interface.
parseArgumentOfTypeObject ( string $argumentName, mixed $objectNameOrConfiguration, string $configurationSourceHint ) : ConfigurationArgument Parses the configuration for arguments of type OBJECT
parseAutowiring ( mixed $value ) : integer Parses the value of the option "autowiring"
parseConfigurationArray ( string $objectName, array $rawConfigurationOptions, string $configurationSourceHint = '', Configuration $existingObjectConfiguration = null ) : Configuration Builds an object configuration object from a generic configuration container.
parsePropertyOfTypeObject ( string $propertyName, mixed $objectNameOrConfiguration, Configuration $parentObjectConfiguration ) : ConfigurationProperty Parses the configuration for properties of type OBJECT
parseScope ( string $value ) : integer Parses the value of the option "scope"

메소드 상세

autowireArguments() 보호된 메소드

If mandatory constructor arguments have not been defined yet, this function tries to autowire them if possible.
protected autowireArguments ( array &$objectConfigurations ) : void
$objectConfigurations array
리턴 void

autowireProperties() 보호된 메소드

This function tries to find yet unmatched dependencies which need to be injected via "inject*" setter methods.
protected autowireProperties ( array &$objectConfigurations ) : void
$objectConfigurations array
리턴 void

buildObjectConfigurations() 공개 메소드

Traverses through the given class and interface names and builds a base object configuration for all of them. Then parses the provided extra configuration and merges the result into the overall configuration. Finally autowires dependencies of arguments and properties which can be resolved automatically.
public buildObjectConfigurations ( array $availableClassAndInterfaceNamesByPackage, array $rawObjectConfigurationsByPackages ) : array
$availableClassAndInterfaceNamesByPackage array An array of available class names, grouped by package key
$rawObjectConfigurationsByPackages array An array of package keys and their raw (ie. unparsed) object configurations
리턴 array

enhanceRawConfigurationWithAnnotationOptions() 보호된 메소드

Builds a raw configuration array by parsing possible scope and autowiring annotations from the given class or interface.
protected enhanceRawConfigurationWithAnnotationOptions ( string $className, array $rawObjectConfiguration ) : array
$className string
$rawObjectConfiguration array
리턴 array

injectReflectionService() 공개 메소드

public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService
리턴 void

injectSystemLogger() 공개 메소드

public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
$systemLogger Neos\Flow\Log\SystemLoggerInterface
리턴 void

parseArgumentOfTypeObject() 보호된 메소드

Parses the configuration for arguments of type OBJECT
protected parseArgumentOfTypeObject ( string $argumentName, mixed $objectNameOrConfiguration, string $configurationSourceHint ) : ConfigurationArgument
$argumentName string Name of the argument
$objectNameOrConfiguration mixed Value of the "object" section of the argument configuration - either a string or an array
$configurationSourceHint string A human readable hint on the original source of the configuration (for troubleshooting)
리턴 ConfigurationArgument A configuration argument of type object

parseAutowiring() 보호된 정적인 메소드

Parses the value of the option "autowiring"
protected static parseAutowiring ( mixed $value ) : integer
$value mixed Value of the option
리턴 integer The autowiring option translated into one of Configuration::AUTOWIRING_MODE_*

parseConfigurationArray() 보호된 메소드

Builds an object configuration object from a generic configuration container.
protected parseConfigurationArray ( string $objectName, array $rawConfigurationOptions, string $configurationSourceHint = '', Configuration $existingObjectConfiguration = null ) : Configuration
$objectName string Name of the object
$rawConfigurationOptions array The configuration array with options for the object configuration
$configurationSourceHint string A human readable hint on the original source of the configuration (for troubleshooting)
$existingObjectConfiguration Configuration If set, this object configuration object will be used instead of creating a fresh one
리턴 Configuration The object configuration object

parsePropertyOfTypeObject() 보호된 메소드

Parses the configuration for properties of type OBJECT
protected parsePropertyOfTypeObject ( string $propertyName, mixed $objectNameOrConfiguration, Configuration $parentObjectConfiguration ) : ConfigurationProperty
$propertyName string Name of the property
$objectNameOrConfiguration mixed Value of the "object" section of the property configuration - either a string or an array
$parentObjectConfiguration Configuration The Configuration object this property belongs to
리턴 ConfigurationProperty A configuration property of type object

parseScope() 보호된 메소드

Parses the value of the option "scope"
protected parseScope ( string $value ) : integer
$value string Value of the option
리턴 integer The scope translated into a Configuration::SCOPE_* constant

프로퍼티 상세

$reflectionService 보호되어 있는 프로퍼티

protected ReflectionService,Neos\Flow\Reflection $reflectionService
리턴 Neos\Flow\Reflection\ReflectionService

$systemLogger 보호되어 있는 프로퍼티

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
리턴 Neos\Flow\Log\SystemLoggerInterface