W3cubDocs

/Symfony 2.8

Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass

class RemoveUnusedDefinitionsPass implements RepeatablePassInterface

Removes unused service definitions from the container.

Methods

setRepeatedPass(RepeatedPass $repeatedPass)

Sets the RepeatedPass interface.

process(ContainerBuilder $container)

Processes the ContainerBuilder to remove unused definitions.

Details

public setRepeatedPass(RepeatedPass $repeatedPass)

Sets the RepeatedPass interface.

Parameters

RepeatedPass $repeatedPass

public process(ContainerBuilder $container)

Processes the ContainerBuilder to remove unused definitions.

Parameters

ContainerBuilder $container