You are here

public function DependencySerializationTestDummy::setContainer in Drupal 10

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

File

core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php, line 106
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;
}