mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
wip
This commit is contained in:
@@ -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.');
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user