You are here

interface ServiceProviderInterface in Service Container 7

Same name in this branch
  1. 7 src/DependencyInjection/ServiceProviderInterface.php \Drupal\service_container\DependencyInjection\ServiceProviderInterface
  2. 7 lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface
Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface

Interface that all service providers must implement.

Hierarchy

Expanded class hierarchy of ServiceProviderInterface

All classes that implement ServiceProviderInterface

File

lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php, line 15
Contains \Drupal\Core\DependencyInjection\ServiceProviderInterface.

Namespace

Drupal\Core\DependencyInjection
View source
interface ServiceProviderInterface {

  /**
   * Registers services to the container.
   *
   * @param ContainerBuilder $container
   *   The ContainerBuilder to register services to.
   */
  public function register(ContainerBuilder $container);

}

Members

Namesort descending Modifiers Type Description Overrides
ServiceProviderInterface::register public function Registers services to the container. 1