You are here

public function ServiceProviderInterface::register in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface::register()

Registers services to the container.

Parameters

ContainerBuilder $container: The ContainerBuilder to register services to.

8 methods override ServiceProviderInterface::register()
CoreServiceProvider::register in core/lib/Drupal/Core/CoreServiceProvider.php
Registers services to the container.
InstallerServiceProvider::register in core/lib/Drupal/Core/Installer/InstallerServiceProvider.php
Registers services to the container.
KernelTestBase::register in core/tests/Drupal/KernelTests/KernelTestBase.php
Registers test-specific services.
RouterTestServiceProvider::register in core/modules/system/tests/modules/router_test_directory/src/RouterTestServiceProvider.php
Registers services to the container.
SerializationServiceProvider::register in core/modules/serialization/src/SerializationServiceProvider.php
Registers services to the container.

... See full list

File

core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php, line 23
Contains \Drupal\Core\DependencyInjection\ServiceProviderInterface.

Class

ServiceProviderInterface
Interface that all service providers must implement.

Namespace

Drupal\Core\DependencyInjection

Code

public function register(ContainerBuilder $container);