A simple implementation of ContainerAwareInterface.
@author Fabien Potencier <fabien@symfony.com>
@api
Expanded class hierarchy of ContainerAware
abstract class ContainerAware implements ContainerAwareInterface {
/**
* @var ContainerInterface
*
* @api
*/
protected $container;
/**
* Sets the Container associated with this Controller.
*
* @param ContainerInterface $container A ContainerInterface instance
*
* @api
*/
public function setContainer(ContainerInterface $container = null) {
$this->container = $container;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerAware:: |
protected | property | @api | |
ContainerAware:: |
public | function |
Sets the Container associated with this Controller. Overrides ContainerAwareInterface:: |