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 AutowireServiceResource createResourceForClass(ReflectionClass $reflectionClass)

Creates a resource to help know if this service has changed.

Details

process(ContainerBuilder $container)

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

Parameters

ContainerBuilder $container

static AutowireServiceResource createResourceForClass(ReflectionClass $reflectionClass)

Creates a resource to help know if this service has changed.

Parameters

ReflectionClass $reflectionClass

Return Value

AutowireServiceResource

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部