Example #1
0
 public function init()
 {
     parent::init();
     //Проверка наличия composer, установка если нет.
     $composer = ROOT_DIR . "/composer.phar";
     if (!file_exists($composer)) {
         $this->systemCmdRoot('php -r "readfile(\'https://getcomposer.org/installer\');" | php');
         $this->actionSelfUpdate();
     }
     if (!file_exists($composer)) {
         throw new \InvalidArgumentException("composer.phar file не найден");
     }
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function options($actionID)
 {
     return ArrayHelper::merge(parent::options($actionID), ['optimize', 'composerVersion', 'composerAssetPluginV', 'noInteraction', 'revertModified', 'profile', 'dbDump']);
 }