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 не найден"); } }
/** * @inheritdoc */ public function options($actionID) { return ArrayHelper::merge(parent::options($actionID), ['optimize', 'composerVersion', 'composerAssetPluginV', 'noInteraction', 'revertModified', 'profile', 'dbDump']); }