فهرست منبع

Merge pull request #2777 from hestiacp/update-default-composer-version

Use version 2.x instead 1.x when not defined
Raphael 3 سال پیش
والد
کامیت
05f513b671
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      web/src/app/System/HestiaApp.php

+ 1 - 1
web/src/app/System/HestiaApp.php

@@ -105,7 +105,7 @@ class HestiaApp
         $this->runUser('v-run-cli-cmd', ["composer", "selfupdate","--$version"]);
         $this->runUser('v-run-cli-cmd', ["composer", "selfupdate","--$version"]);
     }
     }
 
 
-    public function runComposer($args, &$cmd_result=null, $version=1): bool
+    public function runComposer($args, &$cmd_result=null, $version=2): bool
     {
     {
         $composer = $this->getUserHomeDir() . DIRECTORY_SEPARATOR . '.composer' . DIRECTORY_SEPARATOR . 'composer';
         $composer = $this->getUserHomeDir() . DIRECTORY_SEPARATOR . '.composer' . DIRECTORY_SEPARATOR . 'composer';
         if (!is_file($composer)) {
         if (!is_file($composer)) {