ContainerBuilder
class ContainerBuilder
Container builder.
Constants
THIS_SERVICE |
|
THIS_CONTAINER |
|
Properties
array | $parameters |
Methods
No description
Adds new service definition.
No description
No description
No description
No description
Removes the specified service definition.
Gets the service definition.
Gets all service definitions.
Does the service definition or alias exist?
No description
Removes the specified alias.
Gets all service aliases.
No description
Resolves autowired service name by type.
Gets autowired service definition of the specified type.
Gets the autowired service names and definitions of the specified type.
Gets the service names and definitions of the specified type.
Gets the service names and tag values.
Checks services, resolves types and rebuilts autowiring classlist.
No description
Adds item to the list of dependencies.
Returns the list of dependencies.
No description
No description
Details
at line 49
__construct()
No description
at line 60
Definition
addDefinition(string|null $name, Definition|null $definition = null)
Adds new service definition.
at line 101
AccessorDefinition
addAccessorDefinition(string|null $name)
No description
at line 107
FactoryDefinition
addFactoryDefinition(string|null $name)
No description
at line 113
LocatorDefinition
addLocatorDefinition(string|null $name)
No description
at line 119
ImportedDefinition
addImportedDefinition(string|null $name)
No description
at line 128
void
removeDefinition(string $name)
Removes the specified service definition.
at line 139
Definition
getDefinition(string $name)
Gets the service definition.
at line 154
array
getDefinitions()
Gets all service definitions.
at line 163
bool
hasDefinition(string $name)
Does the service definition or alias exist?
at line 170
void
addAlias(string $alias, string $service)
No description
at line 192
void
removeAlias(string $alias)
Removes the specified alias.
at line 201
array
getAliases()
Gets all service aliases.
at line 211
ContainerBuilder
addExcludedClasses(array $types)
No description
at line 224
string|null
getByType(string $type, bool $throw = false)
Resolves autowired service name by type.
at line 235
Definition
getDefinitionByType(string $type)
Gets autowired service definition of the specified type.
at line 246
array
findAutowired(string $type)
internal |
Gets the autowired service names and definitions of the specified type.
at line 257
array
findByType(string $type)
Gets the service names and definitions of the specified type.
at line 275
array
findByTag(string $tag)
Gets the service names and tag values.
at line 294
void
resolve()
Checks services, resolves types and rebuilts autowiring classlist.
at line 323
void
complete()
No description
at line 343
ContainerBuilder
addDependency(ReflectionClass|ReflectionFunctionAbstract|string $dep)
internal |
Adds item to the list of dependencies.
at line 353
array
getDependencies()
Returns the list of dependencies.
at line 360
array
exportMeta()
internal |
No description
at line 399
static PhpLiteral
literal(string $code, array|null $args = null)
No description
at line 408
string
formatPhp(string $statement, array $args)
deprecated
deprecated
No description
at line 423
void
prepareClassList()
deprecated
deprecated
No description