27 lines
824 B
YAML
27 lines
824 B
YAML
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
|