You are here

ContainerBuilderInterface.php in Service Container 7.2

Same filename and directory in other branches
  1. 7 src/DependencyInjection/ContainerBuilderInterface.php

File

src/DependencyInjection/ContainerBuilderInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\service_container\DependencyInjection\ContainerBuilderInterface
 */
namespace Drupal\service_container\DependencyInjection;


/**
 * Interface to build container objects.
 *
 * @ingroup dic
 */
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();

}

Interfaces

Namesort descending Description
ContainerBuilderInterface Interface to build container objects.