public static Drupal::setContainer(ContainerInterface $container)
Sets a new global container.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: A new container instance to replace the current.
File
- core/lib/Drupal.php, line 109
- Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function setContainer(ContainerInterface $container) { static::$container = $container; }
Please login to continue.