platform/api/symfony/Component/DependencyInjection/Compiler/RemoveUnusedDefinitionsPass.yaml

38 lines
1.2 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: RemoveUnusedDefinitionsPass
class_comment: '# * Removes unused service definitions from the container.
# *
# * @author Johannes M. Schmitt <schmittjoh@gmail.com>
# * @author Nicolas Grekas <p@tchwork.com>'
dependencies:
- name: ContainerBuilder
type: class
source: Symfony\Component\DependencyInjection\ContainerBuilder
- name: Reference
type: class
source: Symfony\Component\DependencyInjection\Reference
properties: []
methods:
- name: process
visibility: public
parameters:
- name: container
comment: "# * Removes unused service definitions from the container.\n# *\n# * @author\
\ Johannes M. Schmitt <schmittjoh@gmail.com>\n# * @author Nicolas Grekas <p@tchwork.com>\n\
# */\n# class RemoveUnusedDefinitionsPass extends AbstractRecursivePass\n# {\n\
# protected bool $skipScalars = true;\n# \n# private array $connectedIds = [];\n\
# \n# /**\n# * Processes the ContainerBuilder to remove unused definitions."
- name: processValue
visibility: protected
parameters:
- name: value
- name: isRoot
default: 'false'
comment: null
traits:
- Symfony\Component\DependencyInjection\ContainerBuilder
- Symfony\Component\DependencyInjection\Reference
interfaces: []