AnalyzeServiceReferencesPass
class AnalyzeServiceReferencesPass extends AbstractRecursivePass implements RepeatablePassInterface
Выполните этот проход перед проходами, которым необходимо знать больше о взаимосвязях ваших сервисов.
Этот класс заполнит ServiceReferenceGraph информацией. Вы можете получить график в других проходах из компилятора.
Свойства
| protected ContainerBuilder | $container | from AbstractRecursivePass | |
| protected | $currentId | from AbstractRecursivePass |
Методы
| process(ContainerBuilder $container) Обрабатывает объект ContainerBuilder для заполнения графа ссылок на сервисы. | ||
| 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 $onlyConstructorArguments = false, bool $hasProxyDumper = true) | ||
| setRepeatedPass(RepeatedPass $repeatedPass) |
Подробности
process(ContainerBuilder $container)
Обрабатывает объект ContainerBuilder для заполнения графа ссылок на сервисы.
Параметры
| 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 $onlyConstructorArguments = false, bool $hasProxyDumper = true)
Параметры
| bool | $onlyConstructorArguments | |
| bool | $hasProxyDumper |
setRepeatedPass(RepeatedPass $repeatedPass)
Параметры
| RepeatedPass | $repeatedPass |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.html