/**
  * We do runtime checking to avoid compilation problems in pure ez4 stacks
  * @param Symfony\Component\HttpKernel\HttpKernelInterface $kernel
  * @throws RuntimeException
  */
 static function init($kernel)
 {
     if (!is_a($kernel, 'Symfony\\Component\\HttpKernel\\HttpKernelInterface')) {
         throw new RuntimeException('kernel object does not implement desired interface');
     }
     self::$kernel = $kernel;
 }
 public static function init()
 {
     $container = eZPerfLoggerLegacyIntegrator::getContainer();
     self::setConfigResolver($container->get('ezpublish.config.resolver'));
 }