WP_CLI
Process::create
Method of the class: Process{}
No Hooks.
Returns
Process.
Usage
$result = Process::create( $command, $cwd, $env );
- $command(string) (required)
- Command to execute.
- $cwd(string|null)
- Directory to execute the command in.
Default: null - $env(array|null)
- Environment variables to set when running the command.
Default: []
Process::create() Process::create code WP-CLI 2.13.0-alpha
public static function create( $command, $cwd = null, $env = [] ) {
$proc = new self();
$proc->command = $command;
$proc->cwd = $cwd;
$proc->env = $env;
return $proc;
}