You are here

interface ContainerBuilderInterface in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/DependencyInjection/ContainerBuilderInterface.php \Drupal\service_container\DependencyInjection\ContainerBuilderInterface

Interface to build container objects.

Hierarchy

Expanded class hierarchy of ContainerBuilderInterface

All classes that implement ContainerBuilderInterface

File

src/DependencyInjection/ContainerBuilderInterface.php, line 15
Contains \Drupal\service_container\DependencyInjection\ContainerBuilderInterface

Namespace

Drupal\service_container\DependencyInjection
View source
interface ContainerBuilderInterface {

  /**
   * Returns the fully build container definition.
   *
   * @return array
   *   An associative array with the following keys:
   *     - parameters: The parameters of the container, simple k/v
   *     - services: The services of the container.
   *
   * @see \Drupal\service_container\DependencyInjection\ServiceProviderInterface
   */
  public function getContainerDefinition();

  /**
   * Compiles the container builder to a new container.
   *
   * @return \Drupal\service_container\DependencyInjection\ContainerInterface
   *   The newly constructed container.
   */
  public function compile();

}

Members

Namesort descending Modifiers Type Description Overrides
ContainerBuilderInterface::compile public function Compiles the container builder to a new container. 1
ContainerBuilderInterface::getContainerDefinition public function Returns the fully build container definition. 1