PHP Класс Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$builder Closure
$className string
$propertyVariables array

Открытые методы

Метод Описание
__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

Описание методов

__call() публичный Метод

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
Результат mixed

__construct() публичный Метод

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() публичный Метод

Activate the dependency and set it in the object.
public _activateDependency ( ) : object
Результат object The real dependency object

_addPropertyVariable() публичный Метод

Adds another variable by reference where the actual dependency object should be injected into once this proxy is activated.
public _addPropertyVariable ( &$propertyVariable ) : void
Результат void

_getClassName() публичный Метод

Returns the class name of the proxied dependency
public _getClassName ( ) : string
Результат string Fully qualified class name of the proxied object

Описание свойств

$builder защищенное свойство

protected Closure $builder
Результат Closure

$className защищенное свойство

protected string $className
Результат string

$propertyVariables защищенное свойство

protected array $propertyVariables
Результат array