1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

Uses the correct service name if nginx-full is installed instead of nginx

This commit is contained in:
Pierre-Luc Brunet
2017-01-04 14:45:44 -05:00
parent 976561a2bf
commit fa0456ea8f
2 changed files with 12 additions and 2 deletions

View File

@@ -56,6 +56,16 @@ function hasInstalledNginx()
|| $this->installed('nginx-full');
}
/**
* Return name of the nginx service installed via Homebrewed.
*
* @return string
*/
function nginxServiceName()
{
return $this->installed('nginx-full') ? 'nginx-full' : 'nginx';
}
/**
* Ensure that the given formula is installed.
*