interface ServiceProviderInterface
Same name in other branches
- 9 core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface
- 10 core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface
- 11.x core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface
Interface that all service providers must implement.
Hierarchy
- interface \Drupal\Core\DependencyInjection\ServiceProviderInterface
Expanded class hierarchy of ServiceProviderInterface
All classes that implement ServiceProviderInterface
Related topics
14 files declare their use of ServiceProviderInterface
- ConfigOverride.php in core/
lib/ Drupal/ Core/ Installer/ ConfigOverride.php - CoreServiceProvider.php in core/
lib/ Drupal/ Core/ CoreServiceProvider.php - DrupalKernel.php in core/
lib/ Drupal/ Core/ DrupalKernel.php - InstallerServiceProvider.php in core/
lib/ Drupal/ Core/ Installer/ InstallerServiceProvider.php - JsonapiServiceProvider.php in core/
modules/ jsonapi/ src/ JsonapiServiceProvider.php
File
-
core/
lib/ Drupal/ Core/ DependencyInjection/ ServiceProviderInterface.php, line 10
Namespace
Drupal\Core\DependencyInjectionView source
interface ServiceProviderInterface {
/**
* Registers services to the container.
*
* @param ContainerBuilder $container
* The ContainerBuilder to register services to.
*/
public function register(ContainerBuilder $container);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ServiceProviderInterface::register | public | function | Registers services to the container. | 14 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.