Compiler\ServiceReferenceGraph (Component\DependencyInjection)
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph
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.
Methods
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(string $sourceId, string $sourceValue, string $destId, string $destValue = null, string $reference = null) Connects 2 nodes together in the Graph. |
Details
public bool hasNode(string $id)
Checks if the graph has a specific node.
public ServiceReferenceGraphNode getNode(string $id)
Gets a node by identifier.
public ServiceReferenceGraphNode[] getNodes()
Returns all nodes.
public clear()
Clears all nodes.
public connect(string $sourceId, string $sourceValue, string $destId, string $destValue = null, string $reference = null)
Connects 2 nodes together in the Graph.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.html