Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass
Checks the validity of references
The following checks are performed by this pass:
- target definitions are not abstract
- target definitions are of equal or wider scope
- target definitions are in the same scope hierarchy
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class CheckReferenceValidityPass
implements
CompilerPassInterface
{
- // members
- private $container;
- private $currentId;
- private $currentDefinition;
- private $currentScope;
- private $currentScopeAncestors;
- private $currentScopeChildren;
- // methods
- public void process()
- private void validateReferences()
- private void validateScope()
- private Definition getDefinition()
Hierarchy
Members
private
- $container
- $currentDefinition
- $currentId
- $currentScope
- $currentScopeAncestors
- $currentScopeChildren
Methods
private
- getDefinition() — Returns the Definition given an id.
- validateReferences() — Validates an array of References.
- validateScope() — Validates the scope of a single Reference.
public
- process() — Processes the ContainerBuilder to validate References.