private function flushRouteCache(IResponse $response)
    {
        if (($path = Config::get('paths', 'routes.cache')) !== null) {
            $this->routeCache->flush("$path/" . RouteCache::DEFAULT_CACHED_ROUTES_FILE_NAME);
        }

        $response->writeln('<info>Route cache flushed</info>');
    }