PHP Class Valet\Brew

Afficher le fichier Open project: laravel/valet

Méthodes publiques

Свойство Type Description
$cli
$files

Méthodes publiques

Méthode 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 méthode

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

createSudoersEntry() public méthode

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

ensureInstalled() public méthode

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

hasInstalledPhp() public méthode

Determine if a compatible PHP version is Homebrewed.
public hasInstalledPhp ( ) : boolean
Résultat boolean

installOrFail() public méthode

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

installed() public méthode

Determine if the given formula is installed.
public installed ( string $formula ) : boolean
$formula string
Résultat boolean

linkedPhp() public méthode

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

restartLinkedPhp() public méthode

Restart the linked PHP-FPM Homebrew service.
public restartLinkedPhp ( ) : void
Résultat void

restartService() public méthode

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

stopService() public méthode

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

tap() public méthode

Tag the given formulas.
public tap ( $formulas ) : void
Résultat void

Property Details

$cli public_oe property

public $cli

$files public_oe property

public $files