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) Checks if the graph has a specific node. | |
ServiceReferenceGraphNode | getNode(string $id) Gets a node by identifier. | |
ServiceReferenceGraphNode[] | getNodes() Returns all nodes. | |
clear() Clears all nodes. | ||
connect($sourceId, $sourceValue, $destId, $destValue = null, $reference = null) Connects 2 nodes together in the Graph. |
Checks if the graph has a specific node.
string | $id | Id to check |
bool |
Gets a node by identifier.
string | $id | The id to retrieve |
ServiceReferenceGraphNode |
InvalidArgumentException | if no node matches the supplied identifier |
Returns all nodes.
ServiceReferenceGraphNode[] |
Clears all nodes.
Connects 2 nodes together in the Graph.
$sourceId | ||
$sourceValue | ||
$destId | ||
$destValue | ||
$reference |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.html