Submit
Path:
~
/
/
opt
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
symfony
/
dependency-injection
/
Compiler
/
File Content:
ServiceReferenceGraph.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace WPToolkitDependenciesIsolationPrefix\Symfony\Component\DependencyInjection\Compiler; use WPToolkitDependenciesIsolationPrefix\Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use WPToolkitDependenciesIsolationPrefix\Symfony\Component\DependencyInjection\Reference; /** * 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. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> * * @final */ class ServiceReferenceGraph { /** * @var ServiceReferenceGraphNode[] */ private array $nodes = []; public function hasNode(string $id) : bool { return isset($this->nodes[$id]); } /** * Gets a node by identifier. * * @throws InvalidArgumentException if no node matches the supplied identifier */ public function getNode(string $id) : ServiceReferenceGraphNode { if (!isset($this->nodes[$id])) { throw new InvalidArgumentException(\sprintf('There is no node with id "%s".', $id)); } return $this->nodes[$id]; } /** * Returns all nodes. * * @return ServiceReferenceGraphNode[] */ public function getNodes() : array { return $this->nodes; } /** * Clears all nodes. */ public function clear() : void { foreach ($this->nodes as $node) { $node->clear(); } $this->nodes = []; } /** * Connects 2 nodes together in the Graph. */ public function connect(?string $sourceId, mixed $sourceValue, ?string $destId, mixed $destValue = null, ?Reference $reference = null, bool $lazy = \false, bool $weak = \false, bool $byConstructor = \false) : void { if (null === $sourceId || null === $destId) { return; } $sourceNode = $this->createNode($sourceId, $sourceValue); $destNode = $this->createNode($destId, $destValue); $edge = new ServiceReferenceGraphEdge($sourceNode, $destNode, $reference, $lazy, $weak, $byConstructor); $sourceNode->addOutEdge($edge); $destNode->addInEdge($edge); } private function createNode(string $id, mixed $value) : ServiceReferenceGraphNode { if (isset($this->nodes[$id]) && $this->nodes[$id]->getValue() === $value) { return $this->nodes[$id]; } return $this->nodes[$id] = new ServiceReferenceGraphNode($id, $value); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
AbstractRecursivePass.php
10755 bytes
0644
AliasDeprecatedPublicServicesPass.php
2344 bytes
0644
AnalyzeServiceReferencesPass.php
6979 bytes
0644
AttributeAutoconfigurationPass.php
7786 bytes
0644
AutoAliasServicePass.php
1572 bytes
0644
AutowireAsDecoratorPass.php
1782 bytes
0644
AutowirePass.php
31502 bytes
0644
AutowireRequiredMethodsPass.php
3231 bytes
0644
AutowireRequiredPropertiesPass.php
2183 bytes
0644
CheckArgumentsValidityPass.php
4469 bytes
0644
CheckCircularReferencesPass.php
2577 bytes
0644
CheckDefinitionValidityPass.php
5243 bytes
0644
CheckExceptionOnInvalidReferenceBehaviorPass.php
4903 bytes
0644
CheckReferenceValidityPass.php
1678 bytes
0644
CheckTypeDeclarationsPass.php
13072 bytes
0644
Compiler.php
2752 bytes
0644
CompilerPassInterface.php
767 bytes
0644
DecoratorServicePass.php
5676 bytes
0644
DefinitionErrorExceptionPass.php
3519 bytes
0644
ExtensionCompilerPass.php
933 bytes
0644
InlineServiceDefinitionsPass.php
8183 bytes
0644
MergeExtensionConfigurationPass.php
8836 bytes
0644
PassConfig.php
7172 bytes
0644
PriorityTaggedServiceTrait.php
7092 bytes
0644
RegisterAutoconfigureAttributesPass.php
3196 bytes
0644
RegisterEnvVarProcessorsPass.php
3261 bytes
0644
RegisterReverseContainerPass.php
2301 bytes
0644
RegisterServiceSubscribersPass.php
7273 bytes
0644
RemoveAbstractDefinitionsPass.php
988 bytes
0644
RemoveBuildParametersPass.php
1240 bytes
0644
RemovePrivateAliasesPass.php
1193 bytes
0644
RemoveUnusedDefinitionsPass.php
2997 bytes
0644
ReplaceAliasByActualDefinitionPass.php
4027 bytes
0644
ResolveBindingsPass.php
10761 bytes
0644
ResolveChildDefinitionsPass.php
7872 bytes
0644
ResolveClassPass.php
1688 bytes
0644
ResolveDecoratorStackPass.php
4656 bytes
0644
ResolveEnvPlaceholdersPass.php
1489 bytes
0644
ResolveFactoryClassPass.php
1346 bytes
0644
ResolveHotPathPass.php
2445 bytes
0644
ResolveInstanceofConditionalsPass.php
7327 bytes
0644
ResolveInvalidReferencesPass.php
5818 bytes
0644
ResolveNamedArgumentsPass.php
6315 bytes
0644
ResolveNoPreloadPass.php
3206 bytes
0644
ResolveParameterPlaceHoldersPass.php
3335 bytes
0644
ResolveReferencesToAliasesPass.php
2893 bytes
0644
ResolveServiceSubscribersPass.php
1850 bytes
0644
ResolveTaggedIteratorArgumentPass.php
1181 bytes
0644
ServiceLocatorTagPass.php
5118 bytes
0644
ServiceReferenceGraph.php
2790 bytes
0644
ServiceReferenceGraphEdge.php
2175 bytes
0644
ServiceReferenceGraphNode.php
2279 bytes
0644
ValidateEnvPlaceholdersPass.php
3918 bytes
0644
N4ST4R_ID | Naxtarrr