interface ServiceProviderInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
8 files declare their use of ServiceProviderInterface
- CoreServiceProvider.php in core/
lib/ Drupal/ Core/ CoreServiceProvider.php - Contains \Drupal\Core\CoreServiceProvider.
- DrupalKernel.php in core/
lib/ Drupal/ Core/ DrupalKernel.php - Contains \Drupal\Core\DrupalKernel.
- InstallerServiceProvider.php in core/
lib/ Drupal/ Core/ Installer/ InstallerServiceProvider.php - Contains \Drupal\Core\Installer\InstallerServiceProvider.
- KernelTestBase.php in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - Contains \Drupal\KernelTests\KernelTestBase.
- RouterTestServiceProvider.php in core/
modules/ system/ tests/ modules/ router_test_directory/ src/ RouterTestServiceProvider.php - Contains \Drupal\router_test\RouterTestServiceProvider.
File
- core/
lib/ Drupal/ Core/ DependencyInjection/ ServiceProviderInterface.php, line 15 - Contains \Drupal\Core\DependencyInjection\ServiceProviderInterface.
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceProviderInterface:: |
public | function | Registers services to the container. | 8 |