1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Merging master.

This commit is contained in:
Mikaël Popowicz
2020-11-30 09:45:11 +01:00
17 changed files with 245 additions and 306 deletions

View File

@@ -32,7 +32,7 @@
*/
Container::setInstance(new Container);
$version = '2.13.4';
$version = '2.13.15';
$app = new Application('Laravel Valet', $version);
@@ -464,11 +464,14 @@
/**
* Allow the user to change the version of php valet uses
*/
$app->command('use phpVersion', function ($phpVersion) {
$app->command('use [phpVersion] [--force]', function ($phpVersion, $force) {
if (!$phpVersion) {
return info('Valet is using ' . Brew::linkedPhp());
}
PhpFpm::validateRequestedVersion($phpVersion);
PhpFpm::stopRunning();
$newVersion = PhpFpm::useVersion($phpVersion);
$newVersion = PhpFpm::useVersion($phpVersion, $force);
Nginx::restart();
info(sprintf('Valet is now using %s.', $newVersion) . PHP_EOL);