function ServiceProviderInterface::register
Same name in other branches
- 9 core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface::register()
- 10 core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface::register()
- 11.x 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.
14 methods override ServiceProviderInterface::register()
- ConfigOverride::register in core/
lib/ Drupal/ Core/ Installer/ ConfigOverride.php - Registers services to the container.
- 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.
- JsonapiServiceProvider::register in core/
modules/ jsonapi/ src/ JsonapiServiceProvider.php - Registers services to the container.
- KernelTestBase::register in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - Registers test-specific services.
File
-
core/
lib/ Drupal/ Core/ DependencyInjection/ ServiceProviderInterface.php, line 18
Class
- ServiceProviderInterface
- Interface that all service providers must implement.
Namespace
Drupal\Core\DependencyInjectionCode
public function register(ContainerBuilder $container);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.