PHP Class Valet\CommandLine

Mostrar archivo Open project: laravel/valet Class Usage Examples

Public Methods

Method Description
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.

Method Details

passthru() public method

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

quietly() public method

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

quietlyAsUser() public method

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

run() public method

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

runAsUser() public method

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

runCommand() public method

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