Пример #1
0
 /**
  * Updates the selected app.
  *
  * @param $appIdentifier
  * @param BaseAppHandler $appHandler
  * @return null|\atuin\skeleton\Module
  * @throws \Exception
  * @throws yii\base\Exception
  */
 public function updateApp(BaseAppHandler $appHandler)
 {
     try {
         // 1 - Updates the App code
         $appHandler->updateApp();
         // 2 - Reloads the Module because there will be new data neccesary to
         // implement in the new installation
         return $this->getModule($appHandler->id, $appHandler->namespace, $appHandler->directory);
     } catch (\Exception $e) {
         throw $e;
     }
 }