Example #1
0
 /**
  * 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);
     }
 }
Example #2
0
 /**
  * Get the path to the cached services.json file.
  *
  * @return string 
  * @static 
  */
 public static function getCachedServicesPath()
 {
     return \Illuminate\Foundation\Application::getCachedServicesPath();
 }
Example #3
0
 /**
  * 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();
 }
Example #4
0
 /**
  * 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';
 }