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

remove superstition

This commit is contained in:
Taylor Otwell
2016-09-21 09:16:07 -05:00
parent 04d7816bd2
commit 372775a4fa

View File

@@ -8,9 +8,9 @@
class PhpFpm class PhpFpm
{ {
public $brew, $cli, $files; var $brew, $cli, $files;
public $taps = [ var $taps = [
'homebrew/dupes', 'homebrew/versions', 'homebrew/homebrew-php' 'homebrew/dupes', 'homebrew/versions', 'homebrew/homebrew-php'
]; ];
@@ -22,7 +22,7 @@ class PhpFpm
* @param Filesystem $files * @param Filesystem $files
* @return void * @return void
*/ */
public function __construct(Brew $brew, CommandLine $cli, Filesystem $files) function __construct(Brew $brew, CommandLine $cli, Filesystem $files)
{ {
$this->cli = $cli; $this->cli = $cli;
$this->brew = $brew; $this->brew = $brew;
@@ -34,7 +34,7 @@ public function __construct(Brew $brew, CommandLine $cli, Filesystem $files)
* *
* @return void * @return void
*/ */
public function install() function install()
{ {
if (! $this->brew->installed('php71') && if (! $this->brew->installed('php71') &&
! $this->brew->installed('php70') && ! $this->brew->installed('php70') &&
@@ -56,7 +56,7 @@ public function install()
* *
* @return void * @return void
*/ */
public function updateConfiguration() function updateConfiguration()
{ {
$contents = $this->files->get($this->fpmConfigPath()); $contents = $this->files->get($this->fpmConfigPath());
@@ -72,7 +72,7 @@ public function updateConfiguration()
* *
* @return void * @return void
*/ */
public function restart() function restart()
{ {
$this->stop(); $this->stop();
@@ -84,7 +84,7 @@ public function restart()
* *
* @return void * @return void
*/ */
public function stop() function stop()
{ {
$this->brew->stopService('php55', 'php56', 'php70', 'php71'); $this->brew->stopService('php55', 'php56', 'php70', 'php71');
} }
@@ -94,7 +94,7 @@ public function stop()
* *
* @return string * @return string
*/ */
public function fpmConfigPath() function fpmConfigPath()
{ {
if ($this->brew->linkedPhp() === 'php71') { if ($this->brew->linkedPhp() === 'php71') {
return '/usr/local/etc/php/7.1/php-fpm.d/www.conf'; return '/usr/local/etc/php/7.1/php-fpm.d/www.conf';