trait ContainerAwareTrait in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerAwareTrait.php \Symfony\Component\DependencyInjection\ContainerAwareTrait
ContainerAware trait.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- trait \Symfony\Component\DependencyInjection\ContainerAwareTrait
1 file declares its use of ContainerAwareTrait
- ClassResolver.php in lib/
Drupal/ Core/ DependencyInjection/ ClassResolver.php - Contains \Drupal\Core\DependencyInjection\ClassResolver.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ContainerAwareTrait.php, line 19
Namespace
Symfony\Component\DependencyInjectionView source
trait ContainerAwareTrait {
/**
* @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 |
---|---|---|---|---|
ContainerAwareTrait:: |
protected | property | ||
ContainerAwareTrait:: |
public | function | Sets the Container associated with this Controller. |