public function init()
 {
     parent::init();
     $this->directory = \Yii::$app->getVendorPath() . '/' . explode(':', $this->composerPackage)[0];
     if (is_null($this->composerPackage)) {
         throw new yii\base\Exception('Composer package for App ' . $this->id . ' not defined.');
     }
 }
Example #2
0
 /**
  * Deletes the app whose App Handler has been sent via parameter.
  *
  * @param $appIdentifier
  * @param BaseAppHandler $appHandler
  * @throws \Exception
  */
 public function deleteApp(BaseAppHandler $appHandler)
 {
     try {
         $appHandler->deleteApp();
     } catch (\Exception $e) {
         throw $e;
     }
 }