Same filename and directory in other branches
  1. 8.9.x core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php
  2. 9 core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php

Namespace

Drupal\Core\DependencyInjection

File

core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php
View source
<?php

namespace Drupal\Core\DependencyInjection;


/**
 * Interface that all service providers must implement.
 *
 * @ingroup container
 */
interface ServiceProviderInterface {

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

}

Interfaces

Namesort descending Description
ServiceProviderInterface Interface that all service providers must implement.