Resolver
class Resolver
| internal |
Resolves and completes service definitions, including autowiring of arguments.
Methods
No description
Returns the class name that the given reference points to, or null if not resolvable.
Returns the class name produced by the given statement's entity, or null if not resolvable.
Completes the service definition by resolving and autowiring all its arguments.
Resolves and autowires a statement's entity and arguments into a completed Statement.
No description
Normalizes reference to 'self' or named reference (or leaves it typed if it is not possible during resolving) and checks existence of service.
Returns named reference to service resolved by type (or 'self' reference for local-autowiring).
Adds item to the list of dependencies.
Add missing arguments using autowiring.
Returns the sentinel value used to mark first-class callable syntax (...).
Details
at line 36
__construct(ContainerBuilder $builder)
No description
at line 43
ContainerBuilder
getContainerBuilder()
No description
at line 52
void
resolveDefinition(Definition $def)
Resolves the service type for the given definition.
at line 79
string|null
resolveReferenceType(Reference $ref)
Returns the class name that the given reference points to, or null if not resolvable.
at line 99
string|null
resolveEntityType(Statement $statement)
Returns the class name produced by the given statement's entity, or null if not resolvable.
at line 164
void
completeDefinition(Definition $def)
Completes the service definition by resolving and autowiring all its arguments.
at line 191
Statement
completeStatement(Statement $statement, bool $currentServiceAllowed = false)
Resolves and autowires a statement's entity and arguments into a completed Statement.
at line 326
array
completeArguments(array $arguments)
No description
at line 386
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.
at line 412
Definition
resolveReference(Reference $ref)
Returns the definition that the reference points to.
at line 429
Reference
getByType(string $type)
Returns named reference to service resolved by type (or 'self' reference for local-autowiring).
at line 456
Resolver
addDependency(ReflectionClass|ReflectionFunctionAbstract|string $dep)
Adds item to the list of dependencies.
at line 556
static array
autowireArguments(ReflectionFunctionAbstract $method, array $arguments, callable $getter)
Add missing arguments using autowiring.
at line 699
static array
getFirstClassCallable()
| internal |
Returns the sentinel value used to mark first-class callable syntax (...).