You are here

public static function Drupal::unsetContainer in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal.php \Drupal::unsetContainer()

Unsets the global container.

9 calls to Drupal::unsetContainer()
BrowserTestBase::prepareEnvironment in core/modules/simpletest/src/BrowserTestBase.php
Prepares the current environment for running the test.
ContentNegotiationRoutingTest::setUp in core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php
Performs setup tasks before each individual test method is run.
DrupalKernelTest::prepareConfigDirectories in core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php
Create and set new configuration directories.
KernelTestBase::bootEnvironment in core/tests/Drupal/KernelTests/KernelTestBase.php
Bootstraps a basic test environment.
KernelTestBase::getCompiledContainerBuilder in core/tests/Drupal/KernelTests/KernelTestBase.php
Prepares a precompiled ContainerBuilder for all tests of this class.

... See full list

File

core/lib/Drupal.php, line 116
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function unsetContainer() {
  static::$container = NULL;
}