You are here

abstract class ContainerAware in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/ContainerAware.php \Symfony\Component\DependencyInjection\ContainerAware

A simple implementation of ContainerAwareInterface.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of ContainerAware

6 files declare their use of ContainerAware
BookNavigationCacheContext.php in core/modules/book/src/Cache/BookNavigationCacheContext.php
Contains \Drupal\book\Cache\BookNavigationCacheContext.
Bundle.php in vendor/symfony/http-kernel/Bundle/Bundle.php
CheckProvider.php in core/lib/Drupal/Core/Access/CheckProvider.php
Contains \Drupal\Core\Access\CheckProvider.
ControllerResolverTest.php in core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
Contains \Drupal\Tests\Core\Controller\ControllerResolverTest.
MenuActiveTrailsCacheContext.php in core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php
Contains \Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext.

... See full list

File

vendor/symfony/dependency-injection/ContainerAware.php, line 19

Namespace

Symfony\Component\DependencyInjection
View source
abstract class ContainerAware implements ContainerAwareInterface {

  /**
   * @var ContainerInterface
   */
  protected $container;

  /**
   * Sets the Container associated with this Controller.
   *
   * @param ContainerInterface $container A ContainerInterface instance
   */
  public function setContainer(ContainerInterface $container = null) {
    $this->container = $container;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ContainerAware::$container protected property
ContainerAware::setContainer public function Sets the Container associated with this Controller. Overrides ContainerAwareInterface::setContainer