/** * Clear the cached Laravel bootstrapping files. * * @return void */ protected static function clearCompiled() { $laravel = new Application(getcwd()); if (file_exists($compiledPath = $laravel->getCachedCompilePath())) { @unlink($compiledPath); } if (file_exists($servicesPath = $laravel->getCachedServicesPath())) { @unlink($servicesPath); } }
/** * Get the path to the cached services.json file. * * @return string * @static */ public static function getCachedServicesPath() { return \Illuminate\Foundation\Application::getCachedServicesPath(); }
/** * Get the path to the cached services.json file. * * @return string */ public function getCachedServicesPath() { $path = $this->optimizer->getCachedServicesPath(); if ($path) { return $path; } if ($this->isRunningOnGae()) { return $this->storagePath() . '/framework/services.json'; } return parent::getCachedServicesPath(); }
/** * Get the path to the cached services.json file. * * @return string */ public function getCachedServicesPath() { if (!$this->isRunningOnGae()) { return parent::getCachedServicesPath(); } if (env('GAE_CACHE_SERVICES_FILE') === true) { return 'cachefs://bootstrap/cache/services.json'; } return $this->storagePath() . '/framework/services.json'; }