diff --git a/.devilbox/www/htdocs/_ajax_callback.php b/.devilbox/www/htdocs/_ajax_callback.php index f002edab9..d6ae14d00 100644 --- a/.devilbox/www/htdocs/_ajax_callback.php +++ b/.devilbox/www/htdocs/_ajax_callback.php @@ -48,9 +48,19 @@ $_GET['software'] => (($version = loadClass('Php')->getDrupalConsoleVersion()) !== false) ? $version : $no )); } - else if ($_GET['software'] == 'drush') { + else if ($_GET['software'] == 'drush7') { echo json_encode(array( - $_GET['software'] => (($version = loadClass('Php')->getDrushVersion()) !== false) ? $version : $no + $_GET['software'] => (($version = loadClass('Php')->getDrushVersion(7)) !== false) ? $version : $no + )); + } + else if ($_GET['software'] == 'drush8') { + echo json_encode(array( + $_GET['software'] => (($version = loadClass('Php')->getDrushVersion(8)) !== false) ? $version : $no + )); + } + else if ($_GET['software'] == 'drush9') { + echo json_encode(array( + $_GET['software'] => (($version = loadClass('Php')->getDrushVersion(9)) !== false) ? $version : $no )); } else if ($_GET['software'] == 'git') { diff --git a/.devilbox/www/htdocs/index.php b/.devilbox/www/htdocs/index.php index dfa806c22..a9a2acd9f 100644 --- a/.devilbox/www/htdocs/index.php +++ b/.devilbox/www/htdocs/index.php @@ -391,8 +391,16 @@ - drush - + drush7 + + + + drush8 + + + + drush9 + git @@ -907,7 +915,9 @@ function updateVersions(app) { } updateVersions('composer'); updateVersions('drupalc'); - updateVersions('drush'); + updateVersions('drush7'); + updateVersions('drush8'); + updateVersions('drush9'); updateVersions('git'); updateVersions('laravel'); updateVersions('mds'); diff --git a/.devilbox/www/include/lib/container/Php.php b/.devilbox/www/include/lib/container/Php.php index 682c118b2..5394a9193 100644 --- a/.devilbox/www/include/lib/container/Php.php +++ b/.devilbox/www/include/lib/container/Php.php @@ -45,9 +45,9 @@ public function getComposerVersion() $output = loadClass('Helper')->exec('composer --version', $output); return loadClass('Helper')->egrep('/[0-9.]+/', $output); } - public function getDrushVersion() + public function getDrushVersion($version) { - $output = loadClass('Helper')->exec('drush --version', $output); + $output = loadClass('Helper')->exec('drush'.$version.' --version', $output); return loadClass('Helper')->egrep('/[0-9.]+/', $output); } public function getDrupalConsoleVersion()