You are here

public function ContainerAware::setContainer in Zircon Profile 8

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

Sets the Container associated with this Controller.

Parameters

ContainerInterface $container A ContainerInterface instance:

Overrides ContainerAwareInterface::setContainer

File

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

Class

ContainerAware
A simple implementation of ContainerAwareInterface.

Namespace

Symfony\Component\DependencyInjection

Code

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