final class ServiceDefinition (View source)

Methods

__construct(string $id, ServiceLifetime $lifetime, DefinitionTarget $target, array $tags = [], array $decorators = [])

Details

__construct

__construct(string $id, ServiceLifetime $lifetime, DefinitionTarget $target, array $tags = [], array $decorators = [])

No description

Parameters

string $id
ServiceLifetime $lifetime
DefinitionTarget $target
array $tags
array $decorators

withTag

ServiceDefinition withTag(string $tag)

No description

Parameters

string $tag

Return Value

ServiceDefinition

withDecorator

ServiceDefinition withDecorator(ServiceDecorator $decorator)

No description

Parameters

ServiceDecorator $decorator

Return Value

ServiceDefinition