You are here

public function ContainerAwareTrait::setContainer in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/ContainerAwareTrait.php \Symfony\Component\DependencyInjection\ContainerAwareTrait::setContainer()

Sets the Container associated with this Controller.

Parameters

ContainerInterface $container A ContainerInterface instance:

File

vendor/symfony/dependency-injection/ContainerAwareTrait.php, line 31

Class

ContainerAwareTrait
ContainerAware trait.

Namespace

Symfony\Component\DependencyInjection

Code

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