You are here

interface ServiceProviderInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/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

Related topics

8 files declare their use of ServiceProviderInterface
CoreServiceProvider.php in core/lib/Drupal/Core/CoreServiceProvider.php
Contains \Drupal\Core\CoreServiceProvider.
DrupalKernel.php in core/lib/Drupal/Core/DrupalKernel.php
Contains \Drupal\Core\DrupalKernel.
InstallerServiceProvider.php in core/lib/Drupal/Core/Installer/InstallerServiceProvider.php
Contains \Drupal\Core\Installer\InstallerServiceProvider.
KernelTestBase.php in core/tests/Drupal/KernelTests/KernelTestBase.php
Contains \Drupal\KernelTests\KernelTestBase.
RouterTestServiceProvider.php in core/modules/system/tests/modules/router_test_directory/src/RouterTestServiceProvider.php
Contains \Drupal\router_test\RouterTestServiceProvider.

... See full list

File

core/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. 8