function ServiceProviderInterface::register
Same name and namespace in other branches
- 11.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()
- 9 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.
1 method overrides ServiceProviderInterface::register()
- InstallerServiceProvider::register in core/
lib/ Drupal/ Core/ Installer/ InstallerServiceProvider.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.