ContainerBuilder
class ContainerBuilder
Container builder.
Constants
THIS_SERVICE |
|
THIS_CONTAINER |
|
Properties
array | $parameters |
Methods
No description
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()
at line 60
Definition
addDefinition(string|null $name, Definition $definition = null)
Adds new service definition.
at line 96
AccessorDefinition
addAccessorDefinition(string|null $name)
at line 102
FactoryDefinition
addFactoryDefinition(string|null $name)
at line 108
LocatorDefinition
addLocatorDefinition(string|null $name)
at line 114
ImportedDefinition
addImportedDefinition(string|null $name)
at line 123
void
removeDefinition(string $name)
Removes the specified service definition.
at line 134
Definition
getDefinition(string $name)
Gets the service definition.
at line 148
array
getDefinitions()
Gets all service definitions.
at line 157
bool
hasDefinition(string $name)
Does the service definition or alias exist?
at line 164
void
addAlias(string $alias, string $service)
at line 185
void
removeAlias(string $alias)
Removes the specified alias.
at line 194
array
getAliases()
Gets all service aliases.
at line 204
ContainerBuilder
addExcludedClasses(array $types)
at line 217
string|null
getByType(string $type, bool $throw = false)
Resolves autowired service name by type.
at line 228
Definition
getDefinitionByType(string $type)
Gets autowired service definition of the specified type.
at line 239
array
findAutowired(string $type)
Gets the autowired service names and definitions of the specified type.
at line 250
array
findByType(string $type)
Gets the service names and definitions of the specified type.
at line 267
array
findByTag(string $tag)
Gets the service names and tag values.
at line 285
void
resolve()
Checks services, resolves types and rebuilts autowiring classlist.
at line 313
void
complete()
at line 333
ContainerBuilder
addDependency(ReflectionClass|ReflectionFunctionAbstract|string $dep)
Adds item to the list of dependencies.
at line 343
array
getDependencies()
Returns the list of dependencies.
at line 350
array
exportMeta()
at line 388
static PhpLiteral
literal(string $code, array $args = null)
at line 397
string
formatPhp(string $statement, array $args)
deprecated
deprecated
at line 412
void
prepareClassList()
deprecated
deprecated