74 lines
2.6 KiB
YAML
74 lines
2.6 KiB
YAML
name: ResolveInvalidReferencesPass
|
|
class_comment: '# * Emulates the invalid behavior if the reference is not found within
|
|
the
|
|
|
|
# * container.
|
|
|
|
# *
|
|
|
|
# * @author Johannes M. Schmitt <schmittjoh@gmail.com>'
|
|
dependencies:
|
|
- name: ArgumentInterface
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Argument\ArgumentInterface
|
|
- name: ServiceClosureArgument
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument
|
|
- name: ContainerBuilder
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\ContainerBuilder
|
|
- name: ContainerInterface
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\ContainerInterface
|
|
- name: Definition
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Definition
|
|
- name: RuntimeException
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Exception\RuntimeException
|
|
- name: ServiceNotFoundException
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
|
|
- name: Reference
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Reference
|
|
- name: TypedReference
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\TypedReference
|
|
properties: []
|
|
methods:
|
|
- name: process
|
|
visibility: public
|
|
parameters:
|
|
- name: container
|
|
comment: "# * Emulates the invalid behavior if the reference is not found within\
|
|
\ the\n# * container.\n# *\n# * @author Johannes M. Schmitt <schmittjoh@gmail.com>\n\
|
|
# */\n# class ResolveInvalidReferencesPass implements CompilerPassInterface\n\
|
|
# {\n# private ContainerBuilder $container;\n# private RuntimeException $signalingException;\n\
|
|
# private string $currentId;\n# \n# /**\n# * Process the ContainerBuilder to resolve\
|
|
\ invalid references."
|
|
- name: processValue
|
|
visibility: private
|
|
parameters:
|
|
- name: value
|
|
- name: rootLevel
|
|
default: '0'
|
|
- name: level
|
|
default: '0'
|
|
comment: '# * Processes arguments to determine invalid references.
|
|
|
|
# *
|
|
|
|
# * @throws RuntimeException When an invalid reference is found'
|
|
traits:
|
|
- Symfony\Component\DependencyInjection\Argument\ArgumentInterface
|
|
- Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument
|
|
- Symfony\Component\DependencyInjection\ContainerBuilder
|
|
- Symfony\Component\DependencyInjection\ContainerInterface
|
|
- Symfony\Component\DependencyInjection\Definition
|
|
- Symfony\Component\DependencyInjection\Exception\RuntimeException
|
|
- Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
|
|
- Symfony\Component\DependencyInjection\Reference
|
|
- Symfony\Component\DependencyInjection\TypedReference
|
|
interfaces:
|
|
- CompilerPassInterface
|