\Composer\UtilProcessExecutor

Summary

Methods
Properties
Constants
__construct()
execute()
splitLines()
getErrorOutput()
outputHandler()
getTimeout()
setTimeout()
escape()
No public properties found
No constants found
No protected methods found
$timeout
$captureOutput
$errorOutput
$io
N/A
escapeArgument()
isSurroundedBy()
No private properties found
N/A

Properties

$timeout

$timeout : 

Type

$captureOutput

$captureOutput : 

Type

$errorOutput

$errorOutput : 

Type

$io

$io : 

Type

Methods

execute()

execute(string  $command, mixed  $output = null, string  $cwd = null) : integer

runs a process on the commandline

Parameters

string $command

the command to execute

mixed $output

the output will be written into this var if passed by ref if a callable is passed it will be used as output handler

string $cwd

the working directory

Returns

integer —

statuscode

splitLines()

splitLines(  $output) 

Parameters

$output

getErrorOutput()

getErrorOutput() : string

Get any error output from the last command

Returns

string

outputHandler()

outputHandler(  $type,   $buffer) 

Parameters

$type
$buffer

getTimeout()

getTimeout() 

setTimeout()

setTimeout(  $timeout) 

Parameters

$timeout

escape()

escape(string  $argument) : string

Escapes a string to be used as a shell argument.

Parameters

string $argument

The argument that will be escaped

Returns

string —

The escaped argument

escapeArgument()

escapeArgument(string  $argument) : string

Copy of ProcessUtils::escapeArgument() that is deprecated in Symfony 3.3 and removed in Symfony 4.

Parameters

string $argument

Returns

string

isSurroundedBy()

isSurroundedBy(  $arg,   $char) 

Parameters

$arg
$char