[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/console/Helper/ -> ProcessHelper.php (summary)

(no description)

File Size: 151 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ProcessHelper:: (5 methods):
  run()
  mustRun()
  wrapCallback()
  escapeString()
  getName()


Class: ProcessHelper  - X-Ref

The ProcessHelper class provides helpers to run external processes.

run(OutputInterface $output, $cmd, $error = null, $callback = null, $verbosity = OutputInterface::VERBOSITY_VERY_VERBOSE)   X-Ref
Runs an external process.

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

mustRun(OutputInterface $output, $cmd, $error = null, $callback = null)   X-Ref
Runs the process.

This is identical to run() except that an exception is thrown if the process
exits with a non-zero exit code.

param: OutputInterface $output   An OutputInterface instance
param: string|Process  $cmd      An instance of Process or a command to run
param: string|null     $error    An error message that must be displayed if something went wrong
param: callable|null   $callback A PHP callback to run whenever there is some
return: Process The process that ran

wrapCallback(OutputInterface $output, Process $process, $callback = null)   X-Ref
Wraps a Process callback to add debugging output.

param: OutputInterface $output   An OutputInterface interface
param: Process         $process  The Process
param: callable|null   $callback A PHP callable
return: callable

escapeString($str)   X-Ref
This method is public for PHP 5.3 compatibility, it should be private.


getName()   X-Ref
{@inheritdoc}




Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1