class ProcessHelper extends Helper
The ProcessHelper class provides helpers to run external processes.
Methods
setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. | from Helper | |
HelperSet | getHelperSet() Gets the helper set associated with this helper. | from Helper |
static int | strlen(string $string) Returns the length of a string, using mb_strwidth if it is available. | from Helper |
static | formatTime($secs) | from Helper |
static | formatMemory($memory) | from Helper |
static | strlenWithoutDecoration(OutputFormatterInterface $formatter, $string) | from Helper |
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. | |
Process | mustRun(OutputInterface $output, string|Process $cmd, string|null $error = null, callable $callback = null) Runs the process. | |
callable | wrapCallback(OutputInterface $output, Process $process, callable $callback = null) Wraps a Process callback to add debugging output. | |
string | getName() Returns the canonical name of this helper. |
Details
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
HelperSet getHelperSet()
Gets the helper set associated with this helper.
static int strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
static formatTime($secs)
static formatMemory($memory)
static strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
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.
Process mustRun(OutputInterface $output, string|Process $cmd, string|null $error = null, callable $callback = null)
Runs the process.
This is identical to run() except that an exception is thrown if the process exits with a non-zero exit code.
callable wrapCallback(OutputInterface $output, Process $process, callable $callback = null)
Wraps a Process callback to add debugging output.
string getName()
Returns the canonical name of this helper.
Please login to continue.