Sets a new global container.
\Symfony\Component\DependencyInjection\ContainerInterface $container: A new container instance to replace the current.
public static function setContainer(ContainerInterface $container) {
static::$container = $container;
}