PHP 클래스 Valet\CommandLine

파일 보기 프로젝트 열기: laravel/valet 1 사용 예제들

공개 메소드들

메소드 설명
passthru ( string $command ) : void Pass the command to the command line and display the output.
quietly ( string $command ) : void Simple global function to run commands.
quietlyAsUser ( string $command ) : void Simple global function to run commands.
run ( string $command, callable $onError = null ) : string Run the given command as the non-root user.
runAsUser ( string $command, callable $onError = null ) : string Run the given command.
runCommand ( string $command, callable $onError = null ) : string Run the given command.

메소드 상세

passthru() 공개 메소드

Pass the command to the command line and display the output.
public passthru ( string $command ) : void
$command string
리턴 void

quietly() 공개 메소드

Simple global function to run commands.
public quietly ( string $command ) : void
$command string
리턴 void

quietlyAsUser() 공개 메소드

Simple global function to run commands.
public quietlyAsUser ( string $command ) : void
$command string
리턴 void

run() 공개 메소드

Run the given command as the non-root user.
public run ( string $command, callable $onError = null ) : string
$command string
$onError callable
리턴 string

runAsUser() 공개 메소드

Run the given command.
public runAsUser ( string $command, callable $onError = null ) : string
$command string
$onError callable
리턴 string

runCommand() 공개 메소드

Run the given command.
public runCommand ( string $command, callable $onError = null ) : string
$command string
$onError callable
리턴 string