AutowireRequiredMethodsPass
class AutowireRequiredMethodsPass extends AbstractRecursivePass
Ищет определения с включённым автоподключением и регистрирует соответствующие методы «@required» в качестве сетеров.
Свойства
| protected ContainerBuilder | $container | из AbstractRecursivePass | |
| protected | $currentId | из AbstractRecursivePass |
Методы
| process(ContainerBuilder $container) Здесь можно изменить контейнер перед выгрузкой в PHP-код. | из AbstractRecursivePass | |
| mixed | processValue(mixed $value, bool $isRoot = false) Обрабатывает значение, найденное в дереве определения. | |
| ReflectionFunctionAbstract|null | getConstructor(Definition $definition, bool $required) | из AbstractRecursivePass |
| ReflectionFunctionAbstract | getReflectionMethod(Definition $definition, string $method) | из AbstractRecursivePass |
Подробности
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 |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Compiler/AutowireRequiredMethodsPass.html