ServiceConfigurator
class ServiceConfigurator extends AbstractServiceConfigurator
Traits
Constants
FACTORY |
|
Properties
protected | $definition | from AbstractConfigurator | |
protected | $parent | from AbstractServiceConfigurator | |
protected | $id | from AbstractServiceConfigurator |
Methods
Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
No description
No description
Registers a service.
Creates an alias.
Registers a PSR-4 namespace using a glob pattern.
Gets an already defined service definition.
Registers a service.
Whether this definition is abstract, that means it merely serves as a template for other definitions.
Sets the arguments to pass to the service constructor/factory method.
Sets one argument to pass to the service constructor/factory method.
Sets whether or not instanceof conditionals should be prepended with a global set.
Adds a method to call after service initialization.
Sets a configurator to call after the service is fully initialized.
Sets the service that this service is decorating.
Whether this definition is deprecated, that means it should not be called anymore.
Sets whether this definition is synthetic, that is not constructed by the container, but dynamically injected.
Details
static mixed
processValue(mixed $value, bool $allowServices = false)
Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
__construct(ContainerBuilder $container, array $instanceof, bool $allowParent, ServicesConfigurator $parent, Definition $definition, string $id, array $defaultTags)
final PrototypeConfigurator
load(string $namespace, string $resource)
Registers a PSR-4 namespace using a glob pattern.
final $this
abstract(bool $abstract = true)
Whether this definition is abstract, that means it merely serves as a template for other definitions.
final $this
args(array $arguments)
Sets the arguments to pass to the service constructor/factory method.
final $this
arg(string|int $key, mixed $value)
Sets one argument to pass to the service constructor/factory method.
final $this
autoconfigure(bool $autoconfigured = true)
Sets whether or not instanceof conditionals should be prepended with a global set.
final $this
bind(string $nameOrFqcn, mixed $valueOrRef)
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).
final $this
call(string $method, array $arguments = array())
Adds a method to call after service initialization.
final $this
configurator(string|array $configurator)
Sets a configurator to call after the service is fully initialized.
final $this
decorate(string|null $id, string|null $renamedId = null, int $priority = 0)
Sets the service that this service is decorating.
final $this
deprecate(string $template = null)
Whether this definition is deprecated, that means it should not be called anymore.