PHP Класс Valet\Brew

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$cli
$files

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Create a new Brew instance.
public __construct ( CommandLine $cli, Filesystem $files ) : void
$cli CommandLine
$files Filesystem
Результат void

createSudoersEntry() публичный Метод

Create the "sudoers.d" entry for running Brew.
public createSudoersEntry ( ) : void
Результат void

ensureInstalled() публичный Метод

Ensure that the given formula is installed.
public ensureInstalled ( string $formula, array $taps = [] ) : void
$formula string
$taps array
Результат void

hasInstalledPhp() публичный Метод

Determine if a compatible PHP version is Homebrewed.
public hasInstalledPhp ( ) : boolean
Результат boolean

installOrFail() публичный Метод

Install the given formula and throw an exception on failure.
public installOrFail ( string $formula, array $taps = [] ) : void
$formula string
$taps array
Результат void

installed() публичный Метод

Determine if the given formula is installed.
public installed ( string $formula ) : boolean
$formula string
Результат boolean

linkedPhp() публичный Метод

Determine which version of PHP is linked in Homebrew.
public linkedPhp ( ) : string
Результат string

restartLinkedPhp() публичный Метод

Restart the linked PHP-FPM Homebrew service.
public restartLinkedPhp ( ) : void
Результат void

restartService() публичный Метод

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

stopService() публичный Метод

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

tap() публичный Метод

Tag the given formulas.
public tap ( $formulas ) : void
Результат void

Описание свойств

$cli публичное свойство

public $cli

$files публичное свойство

public $files