/** * @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); }
/** * @param Event $event * * @return void */ public static function cache(Event $event) { $app = new Application(); $routes = $app->getRoutes(); parent::cacheData($routes, $event); }