ContainerConfigurator.php
Interfaces, Classes and Traits
Table of Contents
- param() : ParamConfigurator
- Creates a parameter.
- ref() : ReferenceConfigurator
- Creates a service reference.
- service() : ReferenceConfigurator
- Creates a reference to a service.
- inline() : InlineServiceConfigurator
- Creates an inline service.
- inline_service() : InlineServiceConfigurator
- Creates an inline service.
- service_locator() : ServiceLocatorArgument
- Creates a service locator.
- iterator() : IteratorArgument
- Creates a lazy iterator.
- tagged_iterator() : TaggedIteratorArgument
- Creates a lazy iterator by tag name.
- tagged_locator() : ServiceLocatorArgument
- Creates a service locator by tag name.
- expr() : Expression
- Creates an expression.
- abstract_arg() : AbstractArgument
- Creates an abstract argument.
- env() : EnvConfigurator
- Creates an environment variable reference.
- service_closure() : ClosureReferenceConfigurator
- Creates a closure service reference.
Functions
param()
Creates a parameter.
param(string $name) : ParamConfigurator
Parameters
- $name : string
Return values
ParamConfigurator —ref()
Creates a service reference.
ref(string $id) : ReferenceConfigurator
Parameters
- $id : string
Tags
Return values
ReferenceConfigurator —service()
Creates a reference to a service.
service(string $serviceId) : ReferenceConfigurator
Parameters
- $serviceId : string
Return values
ReferenceConfigurator —inline()
Creates an inline service.
inline([string|null $class = null ]) : InlineServiceConfigurator
Parameters
- $class : string|null = null
Tags
Return values
InlineServiceConfigurator —inline_service()
Creates an inline service.
inline_service([string|null $class = null ]) : InlineServiceConfigurator
Parameters
- $class : string|null = null
Return values
InlineServiceConfigurator —service_locator()
Creates a service locator.
service_locator(array<string|int, ReferenceConfigurator> $values) : ServiceLocatorArgument
Parameters
- $values : array<string|int, ReferenceConfigurator>
Return values
ServiceLocatorArgument —iterator()
Creates a lazy iterator.
iterator(array<string|int, ReferenceConfigurator> $values) : IteratorArgument
Parameters
- $values : array<string|int, ReferenceConfigurator>
Return values
IteratorArgument —tagged_iterator()
Creates a lazy iterator by tag name.
tagged_iterator(string $tag[, string|null $indexAttribute = null ][, string|null $defaultIndexMethod = null ][, string|null $defaultPriorityMethod = null ]) : TaggedIteratorArgument
Parameters
- $tag : string
- $indexAttribute : string|null = null
- $defaultIndexMethod : string|null = null
- $defaultPriorityMethod : string|null = null
Return values
TaggedIteratorArgument —tagged_locator()
Creates a service locator by tag name.
tagged_locator(string $tag[, string|null $indexAttribute = null ][, string|null $defaultIndexMethod = null ][, string|null $defaultPriorityMethod = null ]) : ServiceLocatorArgument
Parameters
- $tag : string
- $indexAttribute : string|null = null
- $defaultIndexMethod : string|null = null
- $defaultPriorityMethod : string|null = null
Return values
ServiceLocatorArgument —expr()
Creates an expression.
expr(string $expression) : Expression
Parameters
- $expression : string
Return values
Expression —abstract_arg()
Creates an abstract argument.
abstract_arg(string $description) : AbstractArgument
Parameters
- $description : string
Return values
AbstractArgument —env()
Creates an environment variable reference.
env(string $name) : EnvConfigurator
Parameters
- $name : string
Return values
EnvConfigurator —service_closure()
Creates a closure service reference.
service_closure(string $serviceId) : ClosureReferenceConfigurator
Parameters
- $serviceId : string