You are here

protected static property Drupal::$container in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal.php \Drupal::container

The currently active container object, or NULL if not initialized yet.

Type: \Symfony\Component\DependencyInjection\ContainerInterface|null

File

core/lib/Drupal.php, line 142

Class

Drupal
Static Service Container wrapper.

Code

protected static $container;