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
1 2 3 | public static function setContainer(ContainerInterface $container ) { static :: $container = $container ; } |
Please login to continue.