Drupal::setContainer

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;
}
doc_Drupal
2016-10-29 09:02:49
Comments
Leave a Comment

Please login to continue.