mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
remove superstition
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
|
||||
class PhpFpm
|
||||
{
|
||||
public $brew, $cli, $files;
|
||||
var $brew, $cli, $files;
|
||||
|
||||
public $taps = [
|
||||
var $taps = [
|
||||
'homebrew/dupes', 'homebrew/versions', 'homebrew/homebrew-php'
|
||||
];
|
||||
|
||||
@@ -22,7 +22,7 @@ class PhpFpm
|
||||
* @param Filesystem $files
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Brew $brew, CommandLine $cli, Filesystem $files)
|
||||
function __construct(Brew $brew, CommandLine $cli, Filesystem $files)
|
||||
{
|
||||
$this->cli = $cli;
|
||||
$this->brew = $brew;
|
||||
@@ -34,7 +34,7 @@ public function __construct(Brew $brew, CommandLine $cli, Filesystem $files)
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function install()
|
||||
function install()
|
||||
{
|
||||
if (! $this->brew->installed('php71') &&
|
||||
! $this->brew->installed('php70') &&
|
||||
@@ -56,7 +56,7 @@ public function install()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function updateConfiguration()
|
||||
function updateConfiguration()
|
||||
{
|
||||
$contents = $this->files->get($this->fpmConfigPath());
|
||||
|
||||
@@ -72,7 +72,7 @@ public function updateConfiguration()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function restart()
|
||||
function restart()
|
||||
{
|
||||
$this->stop();
|
||||
|
||||
@@ -84,7 +84,7 @@ public function restart()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function stop()
|
||||
function stop()
|
||||
{
|
||||
$this->brew->stopService('php55', 'php56', 'php70', 'php71');
|
||||
}
|
||||
@@ -94,7 +94,7 @@ public function stop()
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function fpmConfigPath()
|
||||
function fpmConfigPath()
|
||||
{
|
||||
if ($this->brew->linkedPhp() === 'php71') {
|
||||
return '/usr/local/etc/php/7.1/php-fpm.d/www.conf';
|
||||
|
||||
Reference in New Issue
Block a user