Drupal 8  8.0.2
CoreServiceProvider Class Reference
Inheritance diagram for CoreServiceProvider:

Public Member Functions

 register (ContainerBuilder $container)
 

Static Public Member Functions

static registerUuid (ContainerBuilder $container)
 

Protected Member Functions

 registerTest (ContainerBuilder $container)
 

Detailed Description

ServiceProvider class for mandatory core services.

This is where Drupal core registers all of its compiler passes. The service definitions themselves are in core/core.services.yml with a few, documented exceptions (typically, install requirements).

Modules wishing to register services to the container should use modulename.services.yml in their respective directories.

Member Function Documentation

register ( ContainerBuilder  $container)

{Registers services to the container.

Parameters
ContainerBuilder$containerThe ContainerBuilder to register services to.
}

Implements ServiceProviderInterface.

References Settings\get(), CoreServiceProvider\registerTest(), and CoreServiceProvider\registerUuid().

Here is the call graph for this function:

registerTest ( ContainerBuilder  $container)
protected

Registers services and event subscribers for a site under test.

Parameters
\Drupal\Core\DependencyInjection\ContainerBuilder$containerThe container builder.

References ContainerBuilder\register().

Referenced by CoreServiceProvider\register().

Here is the call graph for this function:

Here is the caller graph for this function:

static registerUuid ( ContainerBuilder  $container)
static

Determines and registers the UUID service.

Parameters
\Drupal\Core\DependencyInjection\ContainerBuilder$containerThe container builder.
Returns
string Class name for the UUID service.

References ContainerBuilder\register().

Referenced by CoreServiceProvider\register().

Here is the call graph for this function:

Here is the caller graph for this function:


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