PHP Class Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy

Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$builder Closure
$className string
$propertyVariables array

Public Methods

Method 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 method

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
return mixed

__construct() public method

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 method

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

_addPropertyVariable() public method

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

_getClassName() public method

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

Property Details

$builder protected property

protected Closure $builder
return Closure

$className protected property

protected string $className
return string

$propertyVariables protected property

protected array $propertyVariables
return array