AutowirePass

class AutowirePass extends AbstractRecursivePass

Inspects existing service definitions and wires the autowired ones using the type hints of their classes.

Methods

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

__construct(bool $throwOnAutowireException = true)

Details

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container

__construct(bool $throwOnAutowireException = true)

Parameters

bool $throwOnAutowireException

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/DependencyInjection/Compiler/AutowirePass.html