Copied!
CloneableInstantiable
Constants
public Symfony\Component\DependencyInjection\Loader\Configurator\ServicesConfigurator::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\ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\PhpFileLoader $loader, array $instanceof, ?string $path = NULL, int $anonymousCount = 0)
public __destruct()
public final __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 alias(string $id, string $referencedId) : Symfony\Component\DependencyInjection\Loader\Configurator\AliasConfigurator
 

Creates an alias.

public final defaults() : Symfony\Component\DependencyInjection\Loader\Configurator\DefaultsConfigurator
 

Defines a set of defaults for following service definitions.

public final 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 instanceof(string $fqcn) : Symfony\Component\DependencyInjection\Loader\Configurator\InstanceofConfigurator
 

Defines an instanceof-conditional to be applied to following service definitions.

public final load(string $namespace, string $resource) : Symfony\Component\DependencyInjection\Loader\Configurator\PrototypeConfigurator
 

Registers a PSR-4 namespace using a glob pattern.

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 remove(string $id) : static
 

Removes an already defined service definition or alias.

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

Registers a service.

  • param string|null $id The service id, or null to create an anonymous service
  • param string|null $class The class of the service, or null when $id is also the class name
public final stack(string $id, array $services) : Symfony\Component\DependencyInjection\Loader\Configurator\AliasConfigurator
 

Registers a stack of decorator services.

  • param \InlineServiceConfigurator[]|\ReferenceConfigurator[] $services
Properties
protected Symfony\Component\DependencyInjection\Definition|Symfony\Component\DependencyInjection\Alias|?null Symfony\Component\DependencyInjection\Loader\Configurator\AbstractConfigurator::$definition = NULL
 
  • internal
Properties
private int $anonymousCount
private string $anonymousHash
private Symfony\Component\DependencyInjection\ContainerBuilder $container
private Symfony\Component\DependencyInjection\Definition $defaults
private array $instanceof
private Symfony\Component\DependencyInjection\Loader\PhpFileLoader $loader
private ?string $path
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