ProcessHelper::run()

Process run(OutputInterface $output, string|array|Process $cmd, string|null $error = null, callable $callback = null, int $verbosity = OutputInterface::VERBOSITY_VERY_VERBOSE)

Runs an external process.

Parameters

OutputInterface $output An OutputInterface instance
string|array|Process $cmd An instance of Process or an array of arguments to escape and run or a command to run
string|null $error An error message that must be displayed if something went wrong
callable $callback A PHP callback to run whenever there is some output available on STDOUT or STDERR
int $verbosity The threshold for verbosity

Return Value

Process The process that ran
doc_Symfony
2016-10-28 06:27:08
Comments
Leave a Comment

Please login to continue.