ServiceLocatorTagPass
класс ServiceLocatorTagPass расширяет AbstractRecursivePass
Применяет тэг "container.service_locator", оборачивая ссылки в экземпляры ServiceClosureArgument.
Свойства
| 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 |
| static Reference | register(ContainerBuilder $container, array $refMap, string|null $callerId = null) |
Подробности
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 |
static Reference register(ContainerBuilder $container, array $refMap, string|null $callerId = null)
Параметры
| ContainerBuilder | $container | |
| array | $refMap | |
| string|null | $callerId |
Возвращаемое значение
| Reference |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.html