platform/api/symfony/Component/DependencyInjection/Compiler/ReplaceAliasByActualDefinitionPass.yaml
2024-09-02 10:44:11 -07:00

47 lines
1.7 KiB
YAML

name: ReplaceAliasByActualDefinitionPass
class_comment: '# * Replaces aliases with actual service definitions, effectively
removing these
# * aliases.
# *
# * @author Johannes M. Schmitt <schmittjoh@gmail.com>'
dependencies:
- name: ContainerBuilder
type: class
source: Symfony\Component\DependencyInjection\ContainerBuilder
- name: InvalidArgumentException
type: class
source: Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
- name: ServiceNotFoundException
type: class
source: Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
- name: Reference
type: class
source: Symfony\Component\DependencyInjection\Reference
properties: []
methods:
- name: process
visibility: public
parameters:
- name: container
comment: "# * Replaces aliases with actual service definitions, effectively removing\
\ these\n# * aliases.\n# *\n# * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n\
# */\n# class ReplaceAliasByActualDefinitionPass extends AbstractRecursivePass\n\
# {\n# protected bool $skipScalars = true;\n# \n# private array $replacements;\n\
# \n# /**\n# * Process the Container to replace aliases with service definitions.\n\
# *\n# * @throws InvalidArgumentException if the service definition does not exist"
- name: processValue
visibility: protected
parameters:
- name: value
- name: isRoot
default: 'false'
comment: null
traits:
- Symfony\Component\DependencyInjection\ContainerBuilder
- Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
- Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
- Symfony\Component\DependencyInjection\Reference
interfaces: []