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|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 43
setClass(string|null $type) deprecated

deprecated Use setType()

Parameters

string|null $type

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

Parameters

string|null $type

Return Value

Definition

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

Parameters

$factory
array $args

Return Value

ServiceDefinition

at line 76
Statement getFactory()

Return Value

Statement

at line 85
string|array|Definition|null getEntity()

Return Value

string|array|Definition|null

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

Parameters

array $args

Return Value

ServiceDefinition

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

Parameters

$key
$value

Return Value

ServiceDefinition

at line 115
ServiceDefinition setSetup(array $setup)

Parameters

array $setup

Return Value

ServiceDefinition

at line 130
array getSetup()

Return Value

array

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

Parameters

$entity
array $args

Return Value

ServiceDefinition

at line 150
setParameters(array $params) deprecated

deprecated

Parameters

array $params

at line 159
array getParameters() deprecated

deprecated

Return Value

array

at line 169
void setDynamic() deprecated

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

Return Value

void

at line 178
void setImplement() deprecated

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

Return Value

void

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

deprecated use addTag('nette.inject')

Parameters

bool $state

at line 194
void resolveType(Resolver $resolver)

Parameters

Resolver $resolver

Return Value

void

at line 218
void complete(Resolver $resolver)

Parameters

Resolver $resolver

Return Value

void

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

Parameters

Method $method
PhpGenerator $generator

Return Value

void

at line 264
__clone()