class InlineServiceConfigurator extends AbstractConfigurator

Traits

Constants

FACTORY

Properties

protected $definition from AbstractConfigurator

Methods

__call($method, $args)

No description

static mixed
processValue(mixed $value, bool $allowServices = false)

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

$this
args(array $arguments)

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

$this
arg(string|int $key, mixed $value)

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

$this
autowire(bool $autowired = true)

Enables/disables autowiring.

$this
bind(string $nameOrFqcn, mixed $valueOrRef)

Sets bindings.

from BindTrait
$this
factory(string|array $factory)

Sets a factory.

$this
file(string $file)

Sets a file to require before creating the service.

from FileTrait
$this
lazy(bool|string $lazy = true)

Sets the lazy flag of this service.

from LazyTrait
$this
parent(string $parent)

Sets the Definition to inherit from.

$this
tag(string $name, array $attributes = array())

Adds a tag for this definition.

from TagTrait
__construct(Definition $definition)

No description

Details

in AbstractConfigurator at line 28
__call($method, $args)

Parameters

$method
$args

in AbstractConfigurator at line 45
static mixed processValue(mixed $value, bool $allowServices = false)

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

Parameters

mixed $value
bool $allowServices whether Definition and Reference are allowed; by default, only scalars and arrays are

Return Value

mixed the value, optionally cast to a Definition/Reference

in ArgumentTrait at line 23
final $this args(array $arguments)

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

Parameters

array $arguments An array of arguments

Return Value

$this

in ArgumentTrait at line 38
final $this arg(string|int $key, mixed $value)

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

Parameters

string|int $key
mixed $value

Return Value

$this

in AutowireTrait at line 21
final $this autowire(bool $autowired = true)

Enables/disables autowiring.

Parameters

bool $autowired

Return Value

$this

in BindTrait at line 31
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).

Parameters

string $nameOrFqcn A parameter name with its "$" prefix, or a FQCN
mixed $valueOrRef The value or reference to bind

Return Value

$this

in FactoryTrait at line 25
final $this factory(string|array $factory)

Sets a factory.

Parameters

string|array $factory A PHP callable reference

Return Value

$this

in FileTrait at line 23
final $this file(string $file)

Sets a file to require before creating the service.

Parameters

string $file A full pathname to include

Return Value

$this

in LazyTrait at line 23
final $this lazy(bool|string $lazy = true)

Sets the lazy flag of this service.

Parameters

bool|string $lazy A FQCN to derivate the lazy proxy from or true to make it extend from the definition's class

Return Value

$this

in ParentTrait at line 26
final $this parent(string $parent)

Sets the Definition to inherit from.

Parameters

string $parent

Return Value

$this

Exceptions

InvalidArgumentException when parent cannot be set

in TagTrait at line 26
final $this tag(string $name, array $attributes = array())

Adds a tag for this definition.

Parameters

string $name The tag name
array $attributes An array of attributes

Return Value

$this

at line 32
__construct(Definition $definition)

Parameters

Definition $definition