You are here

interface ContainerAwareInterface in Service Container 7

Same name in this branch
  1. 7 src/DependencyInjection/ContainerAwareInterface.php \Drupal\service_container\DependencyInjection\ContainerAwareInterface
  2. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerAwareInterface.php \Symfony\Component\DependencyInjection\ContainerAwareInterface
Same name and namespace in other branches
  1. 7.2 src/DependencyInjection/ContainerAwareInterface.php \Drupal\service_container\DependencyInjection\ContainerAwareInterface

ContainerAwareInterface should be implemented by classes that depend on a Container.

Hierarchy

Expanded class hierarchy of ContainerAwareInterface

All classes that implement ContainerAwareInterface

File

src/DependencyInjection/ContainerAwareInterface.php, line 17
Contains \Drupal\service_container\DependencyInjection\ContainerAwareInterface

Namespace

Drupal\service_container\DependencyInjection
View source
interface ContainerAwareInterface {

  /**
   * Sets the Container associated with this service.
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface|null $container
   *   A ContainerInterface instance or NULL to be injected in the service.
   */
  public function setContainer(SymfonyContainerInterface $container = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
ContainerAwareInterface::setContainer public function Sets the Container associated with this service. 3