abstract class ContainerAware in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/ContainerAware.php \Symfony\Component\DependencyInjection\ContainerAware
A simple implementation of ContainerAwareInterface.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\DependencyInjection\ContainerAware implements ContainerAwareInterface
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.
File
- vendor/
symfony/ dependency-injection/ ContainerAware.php, line 19
Namespace
Symfony\Component\DependencyInjectionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerAware:: |
protected | property | ||
ContainerAware:: |
public | function |
Sets the Container associated with this Controller. Overrides ContainerAwareInterface:: |