DefaultsConfigurator
class DefaultsConfigurator 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
Registers a service.
Creates an alias.
Registers a PSR-4 namespace using a glob pattern.
Gets an already defined service definition.
Registers a service.
Sets whether or not instanceof conditionals should be prepended with a global set.
Adds a tag for this definition.
Defines an instanceof-conditional to be applied to following service definitions.
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(ServicesConfigurator $parent, Definition $definition, string $id = null, array $defaultTags = array())
final PrototypeConfigurator
load(string $namespace, string $resource)
Registers a PSR-4 namespace using a glob pattern.
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 InstanceofConfigurator
instanceof(string $fqcn)
Defines an instanceof-conditional to be applied to following service definitions.