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

28 lines
824 B
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: CheckAliasValidityPass
class_comment: '# * This pass validates aliases, it provides the following checks:
# *
# * - An alias which happens to be an interface must resolve to a service implementing
this interface. This ensures injecting the aliased interface won''t cause a type
error at runtime.'
dependencies:
- name: ContainerBuilder
type: class
source: Symfony\Component\DependencyInjection\ContainerBuilder
- name: RuntimeException
type: class
source: Symfony\Component\DependencyInjection\Exception\RuntimeException
properties: []
methods:
- name: process
visibility: public
parameters:
- name: container
comment: null
traits:
- Symfony\Component\DependencyInjection\ContainerBuilder
- Symfony\Component\DependencyInjection\Exception\RuntimeException
interfaces:
- CompilerPassInterface