1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00
This commit is contained in:
NasirNobin
2022-03-21 19:50:43 +06:00
parent 0aeebe845b
commit ee6a17ea57
2 changed files with 24 additions and 9 deletions

View File

@@ -555,10 +555,17 @@
/**
* List isolated sites.
*/
$app->command('isolated', function () {
$sites = PhpFpm::isolatedDirectories();
$app->command('isolated [--site=]', function ($site) {
if ($site) {
if ($phpVersion = Site::customPhpVersion($site.'.'.data_get(Configuration::read(), 'tld'))) {
$phpVersion = PhpFpm::normalizePhpVersion($phpVersion);
return output($phpVersion);
}
} else {
$sites = PhpFpm::isolatedDirectories();
table(['Path', 'PHP Version'], $sites->all());
table(['Path', 'PHP Version'], $sites->all());
}
})->descriptions('List all sites using isolated versions of PHP.');
/**