class ServiceReferenceGraph
This is a directed graph of your services.
This information can be used by your compiler passes instead of collecting it themselves which improves performance quite a lot.
bool | hasNode(string $id) | |
ServiceReferenceGraphNode | getNode(string $id) Gets a node by identifier. | |
array | getNodes() Returns all nodes. | |
clear() Clears all nodes. | ||
connect(string|null $sourceId, $sourceValue, string|null $destId, $destValue = null, $reference = null, bool $lazy = false, bool $weak = false) Connects 2 nodes together in the Graph. |
string | $id |
bool |
Gets a node by identifier.
string | $id |
ServiceReferenceGraphNode |
InvalidArgumentException | if no node matches the supplied identifier |
Returns all nodes.
array |
Clears all nodes.
Connects 2 nodes together in the Graph.
string|null | $sourceId | |
$sourceValue | ||
string|null | $destId | |
$destValue | ||
$reference | ||
bool | $lazy | |
bool | $weak |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.html