class Resolver

internal  
 

Services resolver

Methods

__construct(ContainerBuilder $builder)

No description

void
resolveDefinition(Definition $def)

No description

string|null
resolveReferenceType(Reference $ref)

No description

string|null
resolveEntityType(Statement $statement)

No description

void
completeDefinition(Definition $def)

No description

completeStatement(Statement $statement, bool $currentServiceAllowed = false)

No description

array
completeArguments(array $arguments)

No description

normalizeReference(Reference $ref)

Normalizes reference to 'self' or named reference (or leaves it typed if it is not possible during resolving) and checks existence of service.

resolveReference(Reference $ref)

No description

getByType(string $type)

Returns named reference to service resolved by type (or 'self' reference for local-autowiring).

addDependency(ReflectionClass|ReflectionFunctionAbstract|string $dep)

Adds item to the list of dependencies.

static array
autowireArguments(ReflectionFunctionAbstract $method, array $arguments, callable $getter)

Add missing arguments using autowiring.

static array
getFirstClassCallable()

No description

Details

at line 38
__construct(ContainerBuilder $builder)

No description

Parameters

ContainerBuilder $builder

at line 45
ContainerBuilder getContainerBuilder()

No description

Return Value

ContainerBuilder

at line 51
void resolveDefinition(Definition $def)

No description

Parameters

Definition $def

Return Value

void

at line 75
string|null resolveReferenceType(Reference $ref)

No description

Parameters

Reference $ref

Return Value

string|null

at line 92
string|null resolveEntityType(Statement $statement)

No description

Parameters

Statement $statement

Return Value

string|null

at line 150
void completeDefinition(Definition $def)

No description

Parameters

Definition $def

Return Value

void

at line 172
Statement completeStatement(Statement $statement, bool $currentServiceAllowed = false)

No description

Parameters

Statement $statement
bool $currentServiceAllowed

Return Value

Statement

at line 339
array completeArguments(array $arguments)

No description

Parameters

array $arguments

Return Value

array

at line 396
Reference normalizeReference(Reference $ref)

Normalizes reference to 'self' or named reference (or leaves it typed if it is not possible during resolving) and checks existence of service.

Parameters

Reference $ref

Return Value

Reference

at line 419
Definition resolveReference(Reference $ref)

No description

Parameters

Reference $ref

Return Value

Definition

at line 432
Reference getByType(string $type)

Returns named reference to service resolved by type (or 'self' reference for local-autowiring).

Parameters

string $type

Return Value

Reference

Exceptions

ServiceCreationException
MissingServiceException

at line 457
Resolver addDependency(ReflectionClass|ReflectionFunctionAbstract|string $dep)

Adds item to the list of dependencies.

Parameters

ReflectionClass|ReflectionFunctionAbstract|string $dep

Return Value

Resolver

at line 508
static array autowireArguments(ReflectionFunctionAbstract $method, array $arguments, callable $getter)

Add missing arguments using autowiring.

Parameters

ReflectionFunctionAbstract $method
array $arguments
callable $getter

Return Value

array

Exceptions

ServiceCreationException

at line 647
static array getFirstClassCallable()

internal  
 

No description

Return Value

array