Ejemplo n.º 1
0
 /**
  * Not too sure if it's gonna be needed... in which case do we want external code to allow to refresh the configResolver?
  * @param $resolver
  * @throws RuntimeException
  */
 public static function setConfigResolver($resolver)
 {
     if (!is_a($resolver, 'eZ\\Publish\\Core\\MVC\\ConfigResolverInterface')) {
         throw new RuntimeException('resolver object does not implement desired interface');
     }
     self::$configResolver = $resolver;
 }