abstract class ContainerAware in Service Container 7
Same name in this branch
- 7 src/DependencyInjection/ContainerAware.php \Drupal\service_container\DependencyInjection\ContainerAware
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerAware.php \Symfony\Component\DependencyInjection\ContainerAware
Same name and namespace in other branches
- 7.2 src/DependencyInjection/ContainerAware.php \Drupal\service_container\DependencyInjection\ContainerAware
ContainerAware is a simple implementation of ContainerAwareInterface.
Hierarchy
- class \Drupal\service_container\DependencyInjection\ContainerAware implements ContainerAwareInterface
Expanded class hierarchy of ContainerAware
1 file declares its use of ContainerAware
File
- src/
DependencyInjection/ ContainerAware.php, line 17 - Contains \Drupal\service_container\DependencyInjection\ContainerAware
Namespace
Drupal\service_container\DependencyInjectionView source
abstract class ContainerAware implements ContainerAwareInterface {
/**
* The injected container.
*
* @var \Symfony\Component\DependencyInjection\ContainerInterface
*/
protected $container;
/**
* {@inheritdoc}
*/
public function setContainer(SymfonyContainerInterface $container = null) {
$this->container = $container;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerAware:: |
protected | property | The injected container. | |
ContainerAware:: |
public | function |
Sets the Container associated with this service. Overrides ContainerAwareInterface:: |