PHP Class Valet\Brew

Show file Open project: laravel/valet

Public Properties

Property Type Description
$cli
$files

Public Methods

Method Description
__construct ( CommandLine $cli, Filesystem $files ) : void Create a new Brew instance.
createSudoersEntry ( ) : void Create the "sudoers.d" entry for running Brew.
ensureInstalled ( string $formula, array $taps = [] ) : void Ensure that the given formula is installed.
hasInstalledPhp ( ) : boolean Determine if a compatible PHP version is Homebrewed.
installOrFail ( string $formula, array $taps = [] ) : void Install the given formula and throw an exception on failure.
installed ( string $formula ) : boolean Determine if the given formula is installed.
linkedPhp ( ) : string Determine which version of PHP is linked in Homebrew.
restartLinkedPhp ( ) : void Restart the linked PHP-FPM Homebrew service.
restartService ( $services ) Restart the given Homebrew services.
stopService ( $services ) Stop the given Homebrew services.
tap ( $formulas ) : void Tag the given formulas.

Method Details

__construct() public method

Create a new Brew instance.
public __construct ( CommandLine $cli, Filesystem $files ) : void
$cli CommandLine
$files Filesystem
return void

createSudoersEntry() public method

Create the "sudoers.d" entry for running Brew.
public createSudoersEntry ( ) : void
return void

ensureInstalled() public method

Ensure that the given formula is installed.
public ensureInstalled ( string $formula, array $taps = [] ) : void
$formula string
$taps array
return void

hasInstalledPhp() public method

Determine if a compatible PHP version is Homebrewed.
public hasInstalledPhp ( ) : boolean
return boolean

installOrFail() public method

Install the given formula and throw an exception on failure.
public installOrFail ( string $formula, array $taps = [] ) : void
$formula string
$taps array
return void

installed() public method

Determine if the given formula is installed.
public installed ( string $formula ) : boolean
$formula string
return boolean

linkedPhp() public method

Determine which version of PHP is linked in Homebrew.
public linkedPhp ( ) : string
return string

restartLinkedPhp() public method

Restart the linked PHP-FPM Homebrew service.
public restartLinkedPhp ( ) : void
return void

restartService() public method

Restart the given Homebrew services.
public restartService ( $services )

stopService() public method

Stop the given Homebrew services.
public stopService ( $services )

tap() public method

Tag the given formulas.
public tap ( $formulas ) : void
return void

Property Details

$cli public property

public $cli

$files public property

public $files