Esempio n. 1
0
 /**
  * @param Event $event
  *
  * @return void
  */
 public static function cache(Event $event)
 {
     $container = new Container();
     self::setUpConfig($container);
     /** @var ConfigInterface $config */
     $config = $container->get(ConfigInterface::class);
     static::setInConfigCachingFlag($event);
     parent::cacheData(static::configToArray($config), $event);
 }
Esempio n. 2
0
 /**
  * @param Event $event
  *
  * @return void
  */
 public static function cache(Event $event)
 {
     $app = new Application();
     $routes = $app->getRoutes();
     parent::cacheData($routes, $event);
 }