You are here

ServiceProviderInterface.php in Service Container 7

File

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

/**
 * @file
 * Contains \Drupal\Core\DependencyInjection\ServiceProviderInterface.
 */
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.