Copied!
CloneableInstantiable
Constants
public Symfony\Component\DependencyInjection\Loader\Configurator\FromCallableConfigurator::FACTORY = 'services'
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\Loader\Configurator\ServiceConfigurator $serviceConfigurator, Symfony\Component\DependencyInjection\Definition $definition)
public __destruct()
public final Symfony\Component\DependencyInjection\Loader\Configurator\AbstractServiceConfigurator::__invoke(string $id, ?string $class = NULL) : Symfony\Component\DependencyInjection\Loader\Configurator\ServiceConfigurator
 

Registers a service.

public Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::__sleep() : array
public Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::__wakeup() : void
public final abstract(bool $abstract = true) : static
 

Whether this definition is abstract, that means it merely serves as a template for other definitions.

  • return $this
public final Symfony\Component\DependencyInjection\Loader\Configurator\AbstractServiceConfigurator::alias(string $id, string $referencedId) : Symfony\Component\DependencyInjection\Loader\Configurator\AliasConfigurator
 

Creates an alias.

public final autoconfigure(bool $autoconfigured = true) : static
 

Sets whether or not instanceof conditionals should be prepended with a global set.

  • return $this
  • throws \InvalidArgumentException when a parent is already set
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 decorate(?string $id, ?string $renamedId = NULL, int $priority = 0, int $invalidBehavior = 1Symfony\Component\DependencyInjection\ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) : static
 

Sets the service that this service is decorating.

  • param string|null $id The decorated service id, use null to remove decoration
  • return $this
  • throws \InvalidArgumentException in case the decorated service id and the new decorated service id are equals
public final deprecate(string $package, string $version, string $message) : static
 

Whether this definition is deprecated, that means it should not be called anymore.

  • param string $package The name of the composer package that is triggering the deprecation
  • param string $version The version of the package that introduced the deprecation
  • param string $message The deprecation message to use
  • return $this
  • throws \InvalidArgumentException when the message template is invalid
public final Symfony\Component\DependencyInjection\Loader\Configurator\AbstractServiceConfigurator::get(string $id) : Symfony\Component\DependencyInjection\Loader\Configurator\ServiceConfigurator
 

Gets an already defined service definition.

  • throws \ServiceNotFoundException if the service definition does not exist
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 Symfony\Component\DependencyInjection\Loader\Configurator\AbstractServiceConfigurator::load(string $namespace, string $resource) : Symfony\Component\DependencyInjection\Loader\Configurator\PrototypeConfigurator
 

Registers a PSR-4 namespace using a glob pattern.

public final private() : static
 
  • return $this
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 public() : static
 
  • return $this
public final Symfony\Component\DependencyInjection\Loader\Configurator\AbstractServiceConfigurator::remove(string $id) : Symfony\Component\DependencyInjection\Loader\Configurator\ServicesConfigurator
 

Removes an already defined service definition or alias.

public final Symfony\Component\DependencyInjection\Loader\Configurator\AbstractServiceConfigurator::set(?string $id, ?string $class = NULL) : Symfony\Component\DependencyInjection\Loader\Configurator\ServiceConfigurator
 

Registers a service.

public final share(bool $shared = true) : static
 

Sets if the service must be shared or not.

  • return $this
public final Symfony\Component\DependencyInjection\Loader\Configurator\AbstractServiceConfigurator::stack(string $id, array $services) : Symfony\Component\DependencyInjection\Loader\Configurator\AliasConfigurator
 

Registers a stack of decorator services.

  • param \InlineServiceConfigurator[]|\ReferenceConfigurator[] $services
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
protected ?string Symfony\Component\DependencyInjection\Loader\Configurator\AbstractServiceConfigurator::$id
protected Symfony\Component\DependencyInjection\Loader\Configurator\ServicesConfigurator Symfony\Component\DependencyInjection\Loader\Configurator\AbstractServiceConfigurator::$parent
Properties
private Symfony\Component\DependencyInjection\Loader\Configurator\ServiceConfigurator $serviceConfigurator
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
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration