CheckDefinitionValidityPass
class CheckDefinitionValidityPass implements CompilerPassInterface
This pass validates each definition individually only taking the information into account which is contained in the definition itself.
Later passes can rely on the following, and specifically do not need to perform these checks themselves:
- non synthetic, non abstract services always have a class set
- synthetic services are always public
Methods
process(ContainerBuilder $container) Processes the ContainerBuilder to validate the Definition. |
Details
process(ContainerBuilder $container)
Processes the ContainerBuilder to validate the Definition.
Parameters
ContainerBuilder | $container |
Exceptions
RuntimeException | When the Definition is invalid |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/DependencyInjection/Compiler/CheckDefinitionValidityPass.html