Autowiring
class Autowiring
Resolves service names by type for autowiring.
Methods
string|null
getByType(string $type, bool $throw = false)
Resolves service name by type.
array
findByType(string $type)
Gets the service names and definitions of the specified type.
void
addExcludedClasses(array $types)
Excludes classes and their ancestors from autowiring lookup.
array
getClassList()
Returns low-priority and high-priority type-to-service-names maps.
void
rebuild()
Rebuilds the type-to-service-names index from current definitions.
Details
at line 28
__construct(ContainerBuilder $builder)
No description
at line 41
string|null
getByType(string $type, bool $throw = false)
Resolves service name by type.
at line 79
array
findByType(string $type)
Gets the service names and definitions of the specified type.
at line 97
void
addExcludedClasses(array $types)
Excludes classes and their ancestors from autowiring lookup.
at line 112
array
getClassList()
Returns low-priority and high-priority type-to-service-names maps.
at line 121
void
rebuild()
Rebuilds the type-to-service-names index from current definitions.