class Autowiring

Autowiring.

Traits

Strict class for better experience.

Methods

__construct(ContainerBuilder $builder)

No description

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)

No description

array
getClassList()

No description

void
rebuild()

No description

Details

at line 35
__construct(ContainerBuilder $builder)

Parameters

ContainerBuilder $builder

at line 47
string|null getByType(string $type, bool $throw = false)

Resolves service name by type.

Parameters

string $type
bool $throw

Return Value

string|null

Exceptions

MissingServiceException when not found
ServiceCreationException when multiple found

at line 75
array findByType(string $type)

Gets the service names and definitions of the specified type.

Parameters

string $type

Return Value

array service name is key

at line 91
void addExcludedClasses(array $types)

Parameters

array $types

Return Value

void

at line 102
array getClassList()

Return Value

array

at line 108
void rebuild()

Return Value

void