W3cubDocs

/Symfony 4.1

RemoveUnusedDefinitionsPass

class RemoveUnusedDefinitionsPass implements RepeatablePassInterface

Removes unused service definitions from the container.

Methods

setRepeatedPass(RepeatedPass $repeatedPass)
process(ContainerBuilder $container)

Processes the ContainerBuilder to remove unused definitions.

Details

setRepeatedPass(RepeatedPass $repeatedPass)

Parameters

RepeatedPass $repeatedPass

process(ContainerBuilder $container)

Processes the ContainerBuilder to remove unused definitions.

Parameters

ContainerBuilder $container