protected function initRouteSet() { $builder = (require $this->app->config()['paths']['config']->expand('routes.php')); $routeSet = new RouteSet(); $routeSet->resources()->draw($builder); // if ($this->app->config()['use_cache']) { // if ($this->app->config()['environment'] == 'production') { $routeSet->setCache($this->app->getService('rails.cache')); // } return $routeSet; }