diff --git a/src/controllers/AdminComposerUpdateController.php b/src/controllers/AdminComposerUpdateController.php index 30a7e4c..03e7b11 100644 --- a/src/controllers/AdminComposerUpdateController.php +++ b/src/controllers/AdminComposerUpdateController.php @@ -119,7 +119,7 @@ public function actionUpdate() if ($rr->isRequestAjaxPost) { - $cmd = "COMPOSER_HOME=.composer php composer.phar self-update 1.10.17 && COMPOSER_HOME=.composer php composer.phar update -o --no-interaction >{$fileUpdateSuccessResult} 2>&1 3>{$fileUpdateErrorResult} &"; + $cmd = "COMPOSER_HOME=.composer php composer.phar self-update --2 && COMPOSER_HOME=.composer php composer.phar update -o --no-interaction >{$fileUpdateSuccessResult} 2>&1 3>{$fileUpdateErrorResult} &"; $process = new \Symfony\Component\Process\Process($cmd, \Yii::getAlias('@root')); $process->run();