AutowirePass

AutowirePass

class AutowirePass implements CompilerPassInterface

Guesses constructor arguments of services definitions and try to instantiate services if necessary.

Methods

process(ContainerBuilder $container)

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

static 登录查看完整内容