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($factory, array $args = [])

No description

getFactory()

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($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 34
__construct()

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

deprecated Use setType()

Parameters

string|null $type

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

Parameters

string|null $type

Return Value

Definition

at line 65
ServiceDefinition setFactory($factory, array $args = [])

Parameters

$factory
array $args

Return Value

ServiceDefinition

at line 72
Statement getFactory()

Return Value

Statement

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

Return Value

string|array|Definition|Reference|null

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

Parameters

array $args

Return Value

ServiceDefinition

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

Parameters

$key
$value

Return Value

ServiceDefinition

at line 105
ServiceDefinition setSetup(array $setup)

Parameters

array $setup

Return Value

ServiceDefinition

at line 118
array getSetup()

Return Value

array

at line 128
ServiceDefinition addSetup($entity, array $args = [])

Parameters

$entity
array $args

Return Value

ServiceDefinition

at line 136
setParameters(array $params) deprecated

deprecated

Parameters

array $params

at line 143
array getParameters() deprecated

deprecated

Return Value

array

at line 151
void setDynamic() deprecated

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

Return Value

void

at line 158
void setImplement() deprecated

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

Return Value

void

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

deprecated use addTag('nette.inject')

Parameters

bool $state

at line 172
void resolveType(Resolver $resolver)

Parameters

Resolver $resolver

Return Value

void

at line 196
void complete(Resolver $resolver)

Parameters

Resolver $resolver

Return Value

void

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

Parameters

Method $method
PhpGenerator $generator

Return Value

void

at line 246
__clone()