コード例 #1
0
 /**
  * Refresh application for Orchestra Platform.
  *
  * @return void
  */
 protected function refreshApplication()
 {
     if (!$this->foundation->installed()) {
         return;
     }
     $extensions = $this->memory->get('extensions.active', []);
     foreach ($extensions as $extension => $config) {
         $options = ['name' => $extension, '--force' => true];
         $this->call('extension:refresh', $options);
         $this->call('extension:update', $options);
     }
 }
コード例 #2
0
ファイル: AssembleCommand.php プロジェクト: azraai/foundation
 /**
  * Refresh application for Orchestra Platform.
  *
  * @return void
  */
 protected function refreshApplication()
 {
     if (!$this->foundation->installed()) {
         return;
     }
     $this->call('extension:detect', ['--quiet' => true]);
     $extensions = $this->memory->get('extensions.active', []);
     foreach ($extensions as $extension => $config) {
         $options = ['name' => $extension, '--force' => true];
         $this->call('extension:refresh', $options);
         $this->call('extension:update', $options);
     }
     $this->foundation->make('orchestra.extension.provider')->writeFreshManifest();
 }
コード例 #3
0
 /**
  * Refresh application for Orchestra Platform.
  *
  * @return void
  */
 protected function refreshApplication()
 {
     if (!$this->foundation->installed()) {
         return;
     }
     $this->call('extension:detect', ['--quiet' => true]);
     $extensions = $this->memory->get('extensions.active', []);
     try {
         foreach ($extensions as $extension => $config) {
             $options = ['name' => $extension, '--force' => true];
             $this->call('extension:refresh', $options);
             $this->call('extension:update', $options);
         }
         $this->laravel->make('orchestra.extension.provider')->writeFreshManifest();
     } catch (PDOException $e) {
         // Skip if application is unable to make connection to the database.
     }
 }