Spec-Zone.ru › Symfony 4.1

AutowirePass

class AutowirePass extends AbstractRecursivePass

Проверяет существующие определения сервисов и подключает те, что автозависимые, используя подсказки типов их классов.

Свойства

protected ContainerBuilder $container from AbstractRecursivePass
protected $currentId from AbstractRecursivePass

Методы

process(ContainerBuilder $container)

Вы можете изменить контейнер здесь перед тем, как он будет преобразован в код PHP.

mixed processValue(mixed $value, bool $isRoot = false)

Обрабатывает значение, найденное в дереве определений.

ReflectionFunctionAbstract|null getConstructor(Definition $definition, bool $required) from AbstractRecursivePass
ReflectionFunctionAbstract getReflectionMethod(Definition $definition, string $method) from AbstractRecursivePass
__construct(bool $throwOnAutowireException = true)

Подробности

process(ContainerBuilder $container)

Вы можете изменить контейнер здесь перед тем, как он будет преобразован в код PHP.

Параметры

ContainerBuilder $container

protected mixed processValue(mixed $value, bool $isRoot = false)

Обрабатывает значение, найденное в дереве определений.

Параметры

mixed $value
bool $isRoot

Возвращаемое значение

mixed Обработанное значение

protected ReflectionFunctionAbstract|null getConstructor(Definition $definition, bool $required)

Параметры

Definition $definition
bool $required

Возвращаемое значение

ReflectionFunctionAbstract|null

Исключения

RuntimeException

protected ReflectionFunctionAbstract getReflectionMethod(Definition $definition, string $method)

Параметры

Definition $definition
string $method

Возвращаемое значение

ReflectionFunctionAbstract

Исключения

RuntimeException

__construct(bool $throwOnAutowireException = true)

Параметры

bool $throwOnAutowireException

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Compiler/AutowirePass.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API