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 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerAwareInterface.php \Symfony\Component\DependencyInjection\ContainerAwareInterface

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

@author Fabien Potencier <fabien@symfony.com>

@api

Hierarchy

Expanded class hierarchy of ContainerAwareInterface

All classes that implement ContainerAwareInterface

2 files declare their use of ContainerAwareInterface
ClassResolver.php in lib/Drupal/Core/DependencyInjection/ClassResolver.php
Contains \Drupal\Core\DependencyInjection\ClassResolver.
ZfExtensionManagerSfContainer.php in lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php
Contains \Drupal\Component\Bridge\ZfExtensionManagerSfContainer.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerAwareInterface.php, line 21

Namespace

Symfony\Component\DependencyInjection
View source
interface ContainerAwareInterface {

  /**
   * Sets the Container.
   *
   * @param ContainerInterface|null $container A ContainerInterface instance or null
   *
   * @api
   */
  public function setContainer(ContainerInterface $container = null);

}

Members