ContainerBuilder
class ContainerBuilder
Container builder.
Constants
THIS_SERVICE |
|
THIS_CONTAINER |
|
Properties
array | $parameters |
Methods
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 service name by type.
Gets the service definition of the specified type.
Gets the service names and definitions of the specified type.
Gets the service objects of the specified tag.
No description
Generates $dependencies, $classList and normalizes class names.
No description
Adds item to the list of dependencies.
Returns the list of dependencies.
No description
No description
Converts @service or @\Class -> service name and checks its existence.
Creates a list of arguments using autowiring.
Details
at line 58
ServiceDefinition
addDefinition($name, ServiceDefinition $definition = null)
Adds new service definition.
at line 83
void
removeDefinition($name)
Removes the specified service definition.
at line 96
ServiceDefinition
getDefinition($name)
Gets the service definition.
at line 110
ServiceDefinition[]
getDefinitions()
Gets all service definitions.
at line 121
bool
hasDefinition($name)
Does the service definition or alias exist?
at line 132
addAlias($alias, $service)
No description
at line 154
void
removeAlias($alias)
Removes the specified alias.
at line 164
array
getAliases()
Gets all service aliases.
at line 174
ContainerBuilder
addExcludedClasses(array $types)
No description
at line 189
setClassName($name)
deprecated
deprecated
No description
at line 199
getClassName()
deprecated
deprecated
No description
at line 215
string|null
getByType($type, $throw = false)
Resolves service name by type.
at line 252
ServiceDefinition
getDefinitionByType($type)
Gets the service definition of the specified type.
at line 263
ServiceDefinition[]
findByType($type)
Gets the service names and definitions of the specified type.
at line 282
array
findByTag($tag)
Gets the service objects of the specified tag.
at line 297
getClassList()
internal |
No description
at line 312
void
prepareClassList()
internal |
Generates $dependencies, $classList and normalizes class names.
at line 560
void
complete()
No description
at line 730
ContainerBuilder
addDependency($dep)
internal |
Adds item to the list of dependencies.
at line 741
array
getDependencies()
Returns the list of dependencies.
at line 752
mixed
expand($value)
deprecated
deprecated
Expands %placeholders% in strings.
at line 761
static PhpLiteral
literal($code, array $args = null)
No description
at line 771
string|array
normalizeEntity($entity)
internal |
No description
at line 796
string
getServiceName($arg)
internal |
Converts @service or @\Class -> service name and checks its existence.
at line 828
array
autowireArguments($class, $method, array $arguments)
internal |
Creates a list of arguments using autowiring.
at line 848
generateClasses($className = 'Container', $parentName = null)
deprecated
deprecated
No description
at line 856
formatStatement(Statement $statement)
deprecated
deprecated
No description
at line 864
formatPhp($statement, $args)
deprecated
deprecated
No description