Copied!
CloneableInstantiable
Constants
public Symfony\Component\DependencyInjection\Loader\Configurator\InlineServiceConfigurator::FACTORY = 'service'
Properties
public static ?Closure Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::$valuePreProcessor = NULL
 
  • var callable|null
Methods
public Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::__call(string $method, array $args) : ?mixed
public __construct(Symfony\Component\DependencyInjection\Definition $definition)
public Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::__sleep() : array
public Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::__wakeup() : void
public final arg(string|int $key, ?mixed $value) : static
 

Sets one argument to pass to the service constructor/factory method.

  • return $this
public final args(array $arguments) : static
 

Sets the arguments to pass to the service constructor/factory method.

  • return $this
public final autowire(bool $autowired = true) : static
 

Enables/disables autowiring.

  • return $this
public final bind(string $nameOrFqcn, ?mixed $valueOrRef) : static
 

Sets bindings.

Bindings map $named or FQCN arguments to values that should be injected in the matching parameters (of the constructor, of methods called and of controller actions).

  • param string $nameOrFqcn A parameter name with its "$" prefix, or an FQCN
  • param mixed $valueOrRef The value or reference to bind
  • return $this
public final call(string $method, array $arguments = [], bool $returnsClone = false) : static
 

Adds a method to call after service initialization.

  • param string $method The method name to call
  • param array $arguments An array of arguments to pass to the method call
  • param bool $returnsClone Whether the call returns the service instance or not
  • return $this
  • throws \InvalidArgumentException on empty $method param
public final configurator(Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator|array|string $configurator) : static
 

Sets a configurator to call after the service is fully initialized.

  • return $this
public final constructor(string $constructor) : static
 

Sets a static constructor.

  • return $this
public final factory(Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator|Symfony\Component\ExpressionLanguage\Expression|array|string $factory) : static
 

Sets a factory.

  • return $this
public final file(string $file) : static
 

Sets a file to require before creating the service.

  • return $this
public final lazy(string|bool $lazy = true) : static
 

Sets the lazy flag of this service.

  • param bool|string $lazy A FQCN to derivate the lazy proxy from or true to make it extend from the definition's class
  • return $this
public final parent(string $parent) : static
 

Sets the Definition to inherit from.

  • return $this
  • throws \InvalidArgumentException when parent cannot be set
public static Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::processValue(?mixed $value, bool $allowServices = false) : ?mixed
 

Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.

  • param bool $allowServices whether Definition and Reference are allowed; by default, only scalars, arrays and enum are
  • return mixed the value, optionally cast to a Definition/Reference
public final property(string $name, ?mixed $value) : static
 

Sets a specific property.

  • return $this
public final tag(string $name, array $attributes = []) : static
 

Adds a tag for this definition.

  • return $this
Properties
protected Symfony\Component\DependencyInjection\Definition|Symfony\Component\DependencyInjection\Alias|?null Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::$definition = NULL
 
  • internal
Properties
private bool $allowParent = true
private string $id = '[inline]'
private ?string $path = NULL
Methods
private validateAttributes(string $tag, array $attributes, array $path = []) : void
Properties
public static ?Closure Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::$valuePreProcessor = NULL
 
  • var callable|null
Methods
public static Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::processValue(?mixed $value, bool $allowServices = false) : ?mixed
 

Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.

  • param bool $allowServices whether Definition and Reference are allowed; by default, only scalars, arrays and enum are
  • return mixed the value, optionally cast to a Definition/Reference
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration