You are here

public function ServiceProviderInterface::register in Service Container 7.2

Same name and namespace in other branches
  1. 7 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\DependencyInjection

Code

public function register(ContainerBuilder $container);