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

Merge pull request #1422 from drbyte/stopdnsmasq

Add "valet stop dnsmasq" option
This commit is contained in:
Matt Stauffer
2023-08-26 22:47:18 -04:00
committed by GitHub
4 changed files with 38 additions and 3 deletions

View File

@@ -112,6 +112,7 @@ public function restart(string $phpVersion = null): void
*/
public function stop(): void
{
info('Stopping phpfpm...');
call_user_func_array(
[$this->brew, 'stopService'],
Brew::SUPPORTED_PHP_VERSIONS
@@ -138,6 +139,7 @@ public function fpmConfigPath(string $phpVersion = null): string
*/
public function stopRunning(): void
{
info('Stopping phpfpm...');
$this->brew->stopService(
$this->brew->getAllRunningServices()
->filter(function ($service) {