PHP Class Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy

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

Protected Properties

Свойство Type Description
$builder Closure
$className string
$propertyVariables array

Méthodes publiques

Méthode Description
__call ( string $methodName, array $arguments ) : mixed Proxy magic call method which triggers the injection of the real dependency and returns the result of a call to the original method in the dependency
__construct ( string $className, Closure $builder ) Constructs this proxy
_activateDependency ( ) : object Activate the dependency and set it in the object.
_addPropertyVariable ( &$propertyVariable ) : void Adds another variable by reference where the actual dependency object should be injected into once this proxy is activated.
_getClassName ( ) : string Returns the class name of the proxied dependency

Method Details

__call() public méthode

Proxy magic call method which triggers the injection of the real dependency and returns the result of a call to the original method in the dependency
public __call ( string $methodName, array $arguments ) : mixed
$methodName string Name of the method to be called
$arguments array An array of arguments to be passed to the method
Résultat mixed

__construct() public méthode

Constructs this proxy
public __construct ( string $className, Closure $builder )
$className string Implementation class name of the dependency to proxy
$builder Closure The closure which eventually builds the dependency

_activateDependency() public méthode

Activate the dependency and set it in the object.
public _activateDependency ( ) : object
Résultat object The real dependency object

_addPropertyVariable() public méthode

Adds another variable by reference where the actual dependency object should be injected into once this proxy is activated.
public _addPropertyVariable ( &$propertyVariable ) : void
Résultat void

_getClassName() public méthode

Returns the class name of the proxied dependency
public _getClassName ( ) : string
Résultat string Fully qualified class name of the proxied object

Property Details

$builder protected_oe property

protected Closure $builder
Résultat Closure

$className protected_oe property

protected string $className
Résultat string

$propertyVariables protected_oe property

protected array $propertyVariables
Résultat array