CheckCircularReferencesPass
in package
implements
CompilerPassInterface
Checks your services for circular references.
References from method calls are ignored since we might be able to resolve these references depending on the order in which services are called.
Circular reference from method calls will only be detected at run-time.
Tags
Interfaces, Classes and Traits
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Table of Contents
- $checkedNodes : mixed
- $currentPath : mixed
- process() : mixed
- Checks the ContainerBuilder object for circular references.
- checkOutEdges() : mixed
- Checks for circular references.
Properties
$checkedNodes
private
mixed
$checkedNodes
$currentPath
private
mixed
$currentPath
Methods
process()
Checks the ContainerBuilder object for circular references.
public
process(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
Return values
mixed —checkOutEdges()
Checks for circular references.
private
checkOutEdges(array<string|int, ServiceReferenceGraphEdge> $edges) : mixed
Parameters
- $edges : array<string|int, ServiceReferenceGraphEdge>
-
An array of Edges