public function ServiceProviderInterface::register in Service Container 7
Same name and namespace in other branches
- 7.2 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()
- ServiceProviderBase::register in lib/
Drupal/ Core/ DependencyInjection/ ServiceProviderBase.php - Registers services to the container.
File
- lib/
Drupal/ Core/ DependencyInjection/ ServiceProviderInterface.php, line 23 - Contains \Drupal\Core\DependencyInjection\ServiceProviderInterface.
Class
- ServiceProviderInterface
- Interface that all service providers must implement.
Namespace
Drupal\Core\DependencyInjectionCode
public function register(ContainerBuilder $container);