You are here

public function ContainerAwareInterface::setContainer in Zircon Profile 8.0

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

Sets the Container.

Parameters

ContainerInterface|null $container A ContainerInterface instance or null:

4 methods override ContainerAwareInterface::setContainer()
ContainerAware::setContainer in vendor/symfony/dependency-injection/ContainerAware.php
Sets the Container associated with this Controller.
DependencySerializationTestDummy::setContainer in core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php
Sets the Container.
DrupalKernel::setContainer in core/lib/Drupal/Core/DrupalKernel.php
Sets the Container.
ZfExtensionManagerSfContainer::setContainer in core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php
Sets the Container.

File

vendor/symfony/dependency-injection/ContainerAwareInterface.php, line 26

Class

ContainerAwareInterface
ContainerAwareInterface should be implemented by classes that depends on a Container.

Namespace

Symfony\Component\DependencyInjection

Code

public function setContainer(ContainerInterface $container = null);