Copied!

Run this pass before passes that need to know more about the relation of your services.

This class will populate the ServiceReferenceGraph with information. You can retrieve the graph in other passes from the compiler.

CloneableInstantiable
Methods
public __construct(bool $onlyConstructorArguments = false, bool $hasProxyDumper = true)
 
  • param bool $onlyConstructorArguments Sets this Service Reference pass to ignore method calls
public process(Symfony\Component\DependencyInjection\ContainerBuilder $container) : void
 

Processes a ContainerBuilder object to populate the service reference graph.

Properties
protected ?Symfony\Component\DependencyInjection\ContainerBuilder Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass::$container
protected ?string Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass::$currentId = NULL
protected bool $skipScalars = true
Methods
protected Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass::enableExpressionProcessing() : void
protected Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass::getConstructor(Symfony\Component\DependencyInjection\Definition $definition, bool $required) : ?ReflectionFunctionAbstract
 
  • throws \RuntimeException
protected Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass::getReflectionMethod(Symfony\Component\DependencyInjection\Definition $definition, string $method) : ReflectionFunctionAbstract
 
  • throws \RuntimeException
protected Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass::inExpression(bool $reset = true) : bool
protected processValue(?mixed $value, bool $isRoot = false) : ?mixed
Properties
private array $aliases
private bool $byConstructor
private bool $byFactory
private ?Symfony\Component\DependencyInjection\Definition $currentDefinition = NULL
private array $definitions
private Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph $graph
private bool $hasProxyDumper
private bool $lazy
private bool $onlyConstructorArguments
Methods
private getDefinitionId(string $id) : ?string
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration