PHP Class Neos\Flow\ObjectManagement\Configuration\Configuration

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$arguments array Arguments of the constructor detected by reflection
$autowiring integer Mode of the autowiring feature. One of the AUTOWIRING_MODE_* constants
$className string Name of the class the object is based on
$configurationSourceHint string Information about where this configuration has been created. Used in error messages to make debugging easier.
$factoryMethodName string Name of the factory method. Only used if $factoryObjectName is set.
$factoryObjectName string If set, specifies the factory object name used to create this object
$lifecycleInitializationMethodName string Name of the method to call during the initialization of the object (after dependencies are injected)
$lifecycleShutdownMethodName string Name of the method to call during the shutdown of the framework
$objectName string Name of the object
$packageKey string Key of the package the specified object is part of
$properties array Array of properties which are injected into the object
$scope string

Méthodes publiques

Méthode Description
__construct ( string $objectName, string $className = null ) The constructor
getArguments ( ) : array Returns a sorted array of constructor arguments indexed by position (starting with "1")
getAutowiring ( ) : integer Returns the autowiring mode for the configured object
getClassName ( ) : string Returns the class name
getConfigurationSourceHint ( ) : string Returns some information (if any) about where this configuration has been created.
getFactoryMethodName ( ) : string Returns the factory method name
getFactoryObjectName ( ) : string Returns the class name of the factory for this object, if any
getLifecycleInitializationMethodName ( ) : string Returns the name of the lifecycle initialization method for this object
getLifecycleShutdownMethodName ( ) : string Returns the name of the lifecycle shutdown method for this object
getObjectName ( ) : string Returns the object name
getPackageKey ( ) : string Returns the package key
getProperties ( ) : array Returns the currently set injection properties of the object
getScope ( ) : string Returns the scope for this object
isCreatedByFactory ( ) : boolean Returns true if factoryObjectName and factoryMethodName are defined.
setArgument ( ConfigurationArgument $argument ) : void Setter function for a single constructor argument
setArguments ( array $arguments ) : void Setter function for injection constructor arguments. If an empty array is passed to this method, all (possibly) defined constructor arguments are removed from the configuration.
setAutowiring ( integer $autowiring ) : void Setter function for property "autowiring"
setClassName ( string $className ) : void Setter function for property "className"
setConfigurationSourceHint ( string $hint ) : void Sets some information (hint) about where this configuration has been created.
setFactoryMethodName ( string $methodName ) : void Sets the name of the factory method
setFactoryObjectName ( string $objectName ) : void Sets the class name of a factory which is in charge of instantiating this object
setLifecycleInitializationMethodName ( string $lifecycleInitializationMethodName ) : void Setter function for property "lifecycleInitializationMethodName"
setLifecycleShutdownMethodName ( string $lifecycleShutdownMethodName ) : void Setter function for property "lifecycleShutdownMethodName"
setObjectName ( $objectName ) : void Sets the object name
setPackageKey ( string $packageKey ) : void Sets the package key
setProperties ( array $properties ) : void Setter function for injection properties. If an empty array is passed to this method, all (possibly) defined properties are removed from the configuration.
setProperty ( ConfigurationProperty $property ) : void Setter function for a single injection property
setScope ( integer $scope ) : void Setter function for property "scope"

Method Details

__construct() public méthode

The constructor
public __construct ( string $objectName, string $className = null )
$objectName string The unique identifier of the object
$className string Name of the class which provides the functionality of this object

getArguments() public méthode

Returns a sorted array of constructor arguments indexed by position (starting with "1")
public getArguments ( ) : array
Résultat array

getAutowiring() public méthode

Returns the autowiring mode for the configured object
public getAutowiring ( ) : integer
Résultat integer Value of one of the AUTOWIRING_MODE_* constants

getClassName() public méthode

Returns the class name
public getClassName ( ) : string
Résultat string Name of the implementing class of this object

getConfigurationSourceHint() public méthode

Returns some information (if any) about where this configuration has been created.
public getConfigurationSourceHint ( ) : string
Résultat string The hint - e.g. the filename of the configuration file

getFactoryMethodName() public méthode

Returns the factory method name
public getFactoryMethodName ( ) : string
Résultat string The factory method name

getFactoryObjectName() public méthode

Returns the class name of the factory for this object, if any
public getFactoryObjectName ( ) : string
Résultat string The factory class name

getLifecycleInitializationMethodName() public méthode

Returns the name of the lifecycle initialization method for this object
public getLifecycleInitializationMethodName ( ) : string
Résultat string The name of the initialization method

getLifecycleShutdownMethodName() public méthode

Returns the name of the lifecycle shutdown method for this object
public getLifecycleShutdownMethodName ( ) : string
Résultat string The name of the shutdown method

getObjectName() public méthode

Returns the object name
public getObjectName ( ) : string
Résultat string object name

getPackageKey() public méthode

Returns the package key
public getPackageKey ( ) : string
Résultat string Key of the package this object is part of

getProperties() public méthode

Returns the currently set injection properties of the object
public getProperties ( ) : array
Résultat array

getScope() public méthode

Returns the scope for this object
public getScope ( ) : string
Résultat string The scope, one of the SCOPE constants

isCreatedByFactory() public méthode

Returns true if factoryObjectName and factoryMethodName are defined.
public isCreatedByFactory ( ) : boolean
Résultat boolean

setArgument() public méthode

Setter function for a single constructor argument
public setArgument ( ConfigurationArgument $argument ) : void
$argument ConfigurationArgument The argument
Résultat void

setArguments() public méthode

Setter function for injection constructor arguments. If an empty array is passed to this method, all (possibly) defined constructor arguments are removed from the configuration.
public setArguments ( array $arguments ) : void
$arguments array
Résultat void

setAutowiring() public méthode

Setter function for property "autowiring"
public setAutowiring ( integer $autowiring ) : void
$autowiring integer One of the AUTOWIRING_MODE_* constants
Résultat void

setClassName() public méthode

Setter function for property "className"
public setClassName ( string $className ) : void
$className string Name of the class which provides the functionality for this object
Résultat void

setConfigurationSourceHint() public méthode

Sets some information (hint) about where this configuration has been created.
public setConfigurationSourceHint ( string $hint ) : void
$hint string The hint - e.g. the filename of the configuration file
Résultat void

setFactoryMethodName() public méthode

Sets the name of the factory method
public setFactoryMethodName ( string $methodName ) : void
$methodName string The factory method name
Résultat void

setFactoryObjectName() public méthode

Sets the class name of a factory which is in charge of instantiating this object
public setFactoryObjectName ( string $objectName ) : void
$objectName string Valid object name of a factory
Résultat void

setLifecycleInitializationMethodName() public méthode

Setter function for property "lifecycleInitializationMethodName"
public setLifecycleInitializationMethodName ( string $lifecycleInitializationMethodName ) : void
$lifecycleInitializationMethodName string Name of the method to call after setter injection
Résultat void

setLifecycleShutdownMethodName() public méthode

Setter function for property "lifecycleShutdownMethodName"
public setLifecycleShutdownMethodName ( string $lifecycleShutdownMethodName ) : void
$lifecycleShutdownMethodName string Name of the method to call during shutdown of the framework
Résultat void

setObjectName() public méthode

Sets the object name
public setObjectName ( $objectName ) : void
Résultat void

setPackageKey() public méthode

Sets the package key
public setPackageKey ( string $packageKey ) : void
$packageKey string Key of the package this object is part of
Résultat void

setProperties() public méthode

Setter function for injection properties. If an empty array is passed to this method, all (possibly) defined properties are removed from the configuration.
public setProperties ( array $properties ) : void
$properties array Array of ConfigurationProperty
Résultat void

setProperty() public méthode

Setter function for a single injection property
public setProperty ( ConfigurationProperty $property ) : void
$property ConfigurationProperty
Résultat void

setScope() public méthode

Setter function for property "scope"
public setScope ( integer $scope ) : void
$scope integer Name of the scope
Résultat void

Property Details

$arguments protected_oe property

Arguments of the constructor detected by reflection
protected array $arguments
Résultat array

$autowiring protected_oe property

Mode of the autowiring feature. One of the AUTOWIRING_MODE_* constants
protected int $autowiring
Résultat integer

$className protected_oe property

Name of the class the object is based on
protected string $className
Résultat string

$configurationSourceHint protected_oe property

Information about where this configuration has been created. Used in error messages to make debugging easier.
protected string $configurationSourceHint
Résultat string

$factoryMethodName protected_oe property

Name of the factory method. Only used if $factoryObjectName is set.
protected string $factoryMethodName
Résultat string

$factoryObjectName protected_oe property

If set, specifies the factory object name used to create this object
protected string $factoryObjectName
Résultat string

$lifecycleInitializationMethodName protected_oe property

Name of the method to call during the initialization of the object (after dependencies are injected)
protected string $lifecycleInitializationMethodName
Résultat string

$lifecycleShutdownMethodName protected_oe property

Name of the method to call during the shutdown of the framework
protected string $lifecycleShutdownMethodName
Résultat string

$objectName protected_oe property

Name of the object
protected string $objectName
Résultat string

$packageKey protected_oe property

Key of the package the specified object is part of
protected string $packageKey
Résultat string

$properties protected_oe property

Array of properties which are injected into the object
protected array $properties
Résultat array

$scope protected_oe property

protected string $scope
Résultat string