AnalyzeServiceReferencesPass
class AnalyzeServiceReferencesPass implements RepeatablePassInterface
Run this pass before passes that need to know more about the relation of your services.
This class will populate the ServiceReferenceGraph with information. You can retrieve the graph in other passes from the compiler.
Methods
__construct(bool $onlyConstructorArguments = false) Constructor. | ||
setRepeatedPass(RepeatedPass $repeatedPass) Sets the RepeatedPass interface. | ||
process(ContainerBuilder $container) Processes a ContainerBuilder object to populate the service reference graph. |
Details
__construct(bool $onlyConstructorArguments = false)
Constructor.
Parameters
bool | $onlyConstructorArguments | Sets this Service Reference pass to ignore method calls |
setRepeatedPass(RepeatedPass $repeatedPass)
Sets the RepeatedPass interface.
Parameters
RepeatedPass | $repeatedPass |
process(ContainerBuilder $container)
Processes a ContainerBuilder object to populate the service reference graph.
Parameters
ContainerBuilder | $container |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.html