public function ContainerAware::setContainer

Sets the Container associated with this Controller.

@api

Parameters

ContainerInterface $container A ContainerInterface instance:

Overrides ContainerAwareInterface::setContainer

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerAware.php, line 37

Class

ContainerAware
A simple implementation of ContainerAwareInterface.

Namespace

Symfony\Component\DependencyInjection

Code

public function setContainer(ContainerInterface $container = null) {
  $this->container = $container;
}