$helperSet
$helperSet :
The ProcessHelper class provides helpers to run external processes.
setHelperSet(\Symfony\Component\Console\Helper\HelperSet $helperSet = null)
Sets the helper set associated with this helper.
\Symfony\Component\Console\Helper\HelperSet | $helperSet |
getHelperSet() : \Symfony\Component\Console\Helper\HelperSet
Gets the helper set associated with this helper.
A HelperSet instance
strlenWithoutDecoration(\Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, $string)
\Symfony\Component\Console\Formatter\OutputFormatterInterface | $formatter | |
$string |
removeDecoration(\Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, $string)
\Symfony\Component\Console\Formatter\OutputFormatterInterface | $formatter | |
$string |
run(\Symfony\Component\Console\Output\OutputInterface $output, string|array|\Symfony\Component\Process\Process $cmd, string|null $error = null, callable|null $callback = null, integer $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_VERY_VERBOSE) : \Symfony\Component\Process\Process
Runs an external process.
\Symfony\Component\Console\Output\OutputInterface | $output | An OutputInterface instance |
string|array|\Symfony\Component\Process\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|null | $callback | A PHP callback to run whenever there is some output available on STDOUT or STDERR |
integer | $verbosity | The threshold for verbosity |
The process that ran
mustRun(\Symfony\Component\Console\Output\OutputInterface $output, string|\Symfony\Component\Process\Process $cmd, string|null $error = null, callable|null $callback = null) : \Symfony\Component\Process\Process
Runs the process.
This is identical to run() except that an exception is thrown if the process exits with a non-zero exit code.
\Symfony\Component\Console\Output\OutputInterface | $output | An OutputInterface instance |
string|\Symfony\Component\Process\Process | $cmd | An instance of Process or a command to run |
string|null | $error | An error message that must be displayed if something went wrong |
callable|null | $callback | A PHP callback to run whenever there is some output available on STDOUT or STDERR |
The process that ran
wrapCallback(\Symfony\Component\Console\Output\OutputInterface $output, \Symfony\Component\Process\Process $process, callable|null $callback = null) : callable
Wraps a Process callback to add debugging output.
\Symfony\Component\Console\Output\OutputInterface | $output | An OutputInterface interface |
\Symfony\Component\Process\Process | $process | The Process |
callable|null | $callback | A PHP callable |