PHP 클래스 Valet\Brew

파일 보기 프로젝트 열기: laravel/valet

공개 프로퍼티들

프로퍼티 타입 설명
$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