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
doc_Symfony
2016-10-28 06:06:36
Comments
Leave a Comment

Please login to continue.