Constants

TimeOut

TimeOut = 86400

one day

TYPE_STREAMS

TYPE_STREAMS = 'streams'

TYPE_FORMAT

TYPE_FORMAT = 'format'

Properties

$name

$name : 

Type

$process

$process : 

Type

— Process

$config

$config : 

Type

— Configuration

$logger

$logger : 

Type

— LoggerInterface

$binary

$binary : 

Type

$listeners

$listeners : 

Type

— ListenerInterface[]

Methods

__construct()

__construct(  $configuration = array(), \Psr\Log\LoggerInterface  $logger = null) 

Command constructor.

Parameters

$configuration
\Psr\Log\LoggerInterface $logger

getProcess()

getProcess() : \Symfony\Component\Process\Process

Returns

\Symfony\Component\Process\Process

command()

command(  $command) : string

Parameters

$command

Returns

string

stop()

stop() 

停止执行

getExitCode()

getExitCode() 

getCommandLine()

getCommandLine() 

getExitCodeText()

getExitCodeText() 

getErrorOutput()

getErrorOutput() 

getOutput()

getOutput() 

isSuccessful()

isSuccessful() 

clear()

clear() 

create()

create(  $configuration = array(), \Psr\Log\LoggerInterface  $logger = null) 

Parameters

$configuration
\Psr\Log\LoggerInterface $logger

format()

format(  $pathfile) 

Parameters

$pathfile

streams()

streams(  $pathfile) 

Parameters

$pathfile

initProcess()

initProcess(  $command) : \Symfony\Component\Process\Process

Parameters

$command

Returns

\Symfony\Component\Process\Process

buildCallback()

buildCallback(  $listeners) : \Closure

Parameters

$listeners

Returns

\Closure

parseJson()

parseJson(  $data) 

Parameters

$data