final class ServiceDefinition extends Definition

Definition of standard service.

Properties

string|null $class
Statement $factory
Statement[] $setup

Methods

__construct()

No description

setClass(string|null $type) deprecated

No description

setType(string|null $type)

No description

setFactory(string|array|Definition|Reference|Statement $factory, array $args = [])

No description

getFactory()

No description

setCreator(string|array|Definition|Reference|Statement $factory, array $args = [])

No description

getCreator()

No description

string|array|Definition|Reference|null
getEntity()

No description

setArguments(array $args = [])

No description

setArgument($key, $value)

No description

setSetup(array $setup)

No description

array
getSetup()

No description

addSetup(string|array|Definition|Reference|Statement $entity, array $args = [])

No description

setParameters(array $params) deprecated

No description

array
getParameters() deprecated

No description

void
setDynamic() deprecated

No description

void
setImplement() deprecated

No description

setInject(bool $state = true) deprecated

No description

void
resolveType(Resolver $resolver)

No description

void
complete(Resolver $resolver)

No description

void
generateMethod(Method $method, PhpGenerator $generator)

No description

__clone()

No description

Details

at line 32
__construct()

No description

at line 39
setClass(string|null $type) deprecated

deprecated Use setType()

No description

Parameters

string|null $type

at line 54
Definition setType(string|null $type)

No description

Parameters

string|null $type

Return Value

Definition

at line 64
ServiceDefinition setFactory(string|array|Definition|Reference|Statement $factory, array $args = [])

No description

Parameters

string|array|Definition|Reference|Statement $factory
array $args

Return Value

ServiceDefinition

at line 70
Statement getFactory()

No description

Return Value

Statement

at line 80
ServiceDefinition setCreator(string|array|Definition|Reference|Statement $factory, array $args = [])

No description

Parameters

string|array|Definition|Reference|Statement $factory
array $args

Return Value

ServiceDefinition

at line 89
Statement getCreator()

No description

Return Value

Statement

at line 96
string|array|Definition|Reference|null getEntity()

No description

Return Value

string|array|Definition|Reference|null

at line 103
ServiceDefinition setArguments(array $args = [])

No description

Parameters

array $args

Return Value

ServiceDefinition

at line 111
ServiceDefinition setArgument($key, $value)

No description

Parameters

$key
$value

Return Value

ServiceDefinition

at line 122
ServiceDefinition setSetup(array $setup)

No description

Parameters

array $setup

Return Value

ServiceDefinition

at line 136
array getSetup()

No description

Return Value

array

at line 146
ServiceDefinition addSetup(string|array|Definition|Reference|Statement $entity, array $args = [])

No description

Parameters

string|array|Definition|Reference|Statement $entity
array $args

Return Value

ServiceDefinition

at line 156
setParameters(array $params) deprecated

deprecated

No description

Parameters

array $params

at line 163
array getParameters() deprecated

deprecated

No description

Return Value

array

at line 171
void setDynamic() deprecated

deprecated use $builder->addImportedDefinition(...)

No description

Return Value

void

at line 178
void setImplement() deprecated

deprecated use $builder->addFactoryDefinition(...) or addAccessorDefinition(...)

No description

Return Value

void

at line 185
setInject(bool $state = true) deprecated

deprecated use addTag('nette.inject')

No description

Parameters

bool $state

at line 192
void resolveType(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

at line 218
void complete(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

at line 241
void generateMethod(Method $method, PhpGenerator $generator)

No description

Parameters

Method $method
PhpGenerator $generator

Return Value

void

at line 260
__clone()

No description