You are here

public function DependencySerializationTestDummy::setContainer in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy::setContainer()

Sets the Container.

Parameters

ContainerInterface|null $container A ContainerInterface instance or null:

Overrides ContainerAwareInterface::setContainer

File

core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php, line 86
Contains \Drupal\Tests\Core\DependencyInjection\DependencySerializationTest.

Class

DependencySerializationTestDummy
Defines a test class which has a single service as dependency.

Namespace

Drupal\Tests\Core\DependencyInjection

Code

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