PHP Class Valet\CommandLine

Afficher le fichier Open project: laravel/valet Class Usage Examples

Méthodes publiques

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

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

quietly() public méthode

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

quietlyAsUser() public méthode

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

run() public méthode

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

runAsUser() public méthode

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

runCommand() public méthode

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