Drupal 8  8.0.2
PhpArrayContainer Class Reference
Inheritance diagram for PhpArrayContainer:

Public Member Functions

 __construct (array $container_definition=array())
- Public Member Functions inherited from Container
 __construct (array $container_definition=array())
 get ($id, $invalid_behavior=ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)
 set ($id, $service, $scope=ContainerInterface::SCOPE_CONTAINER)
 has ($id)
 getParameter ($name)
 hasParameter ($name)
 setParameter ($name, $value)
 initialized ($id)
 enterScope ($name)
 leaveScope ($name)
 addScope (ScopeInterface $scope)
 hasScope ($name)
 isScopeActive ($name)
 getServiceIds ()

Protected Member Functions

 createService (array $definition, $id)
 resolveServicesAndParameters ($arguments)
- Protected Member Functions inherited from Container
 createService (array $definition, $id)
 resolveServicesAndParameters ($arguments)
 getAlternatives ($search_key, array $keys)
 getServiceAlternatives ($id)
 getParameterAlternatives ($name)

Additional Inherited Members

- Protected Attributes inherited from Container
 $parameters = array()
 $aliases = array()
 $serviceDefinitions = array()
 $services = array()
 $privateServices = array()
 $loading = array()
 $frozen = TRUE

Detailed Description

Provides a container optimized for Drupal's needs.

This container implementation is compatible with the default Symfony dependency injection container and similar to the Symfony ContainerBuilder class, but optimized for speed.

It is based on a human-readable PHP array container definition with a structure very similar to the YAML container definition.

See Also

Constructor & Destructor Documentation

__construct ( array  $container_definition = array())


Member Function Documentation

createService ( array  $definition,


References PhpArrayContainer\resolveServicesAndParameters().

Here is the call graph for this function:

resolveServicesAndParameters (   $arguments)


Referenced by PhpArrayContainer\createService().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: