function ServiceProviderInterface::register
Same name in other branches
- 8.9.x 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.
11 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.
- 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.
- LayoutBuilderServiceProvider::register in core/
modules/ layout_builder/ src/ LayoutBuilderServiceProvider.php - Registers services to the container.
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.