class ContainerNotInitializedException

Exception, thrown when a method is called on a non-initialized container.

Hierarchy

Expanded class hierarchy of ContainerNotInitializedException

See also

\Drupal

2 files declare their use of ContainerNotInitializedException
Drupal.php in core/lib/Drupal.php
DrupalTest.php in core/tests/Drupal/Tests/Core/DrupalTest.php
1 string reference to 'ContainerNotInitializedException'
HookCollectorPassTest::testContainerOutsideFunction in core/modules/system/tests/src/Functional/Hook/HookCollectorPassTest.php
Tests installing a module with a Drupal container call outside functions.

File

core/lib/Drupal/Core/DependencyInjection/ContainerNotInitializedException.php, line 10

Namespace

Drupal\Core\DependencyInjection
View source
class ContainerNotInitializedException extends \RuntimeException {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.