CommandRunner

Class CommandRunner

package

Ascmvc\EventSourcing

Methods

CommandRunner constructor.

__construct(\Ascmvc\AbstractApp $application, string $name, array $arguments = array(), boolean $swoole = false) 

Arguments

$application

\Ascmvc\AbstractApp

$name

string

$arguments

array

$swoole

boolean

Gets the command's standard error (STDERR).

getError() : mixed

Response

mixed

Gets the command's standard output (STDOUT).

getOutput() : mixed

Response

mixed

Runs the command.

start() : boolean
Throws
\Exception

Response

boolean

Properties

Indicates if the application is running inside a Swoole coroutine or not.

swoole : boolean
var

Type(s)

boolean

Contains an instance of the AbstractApp class.

application : \Ascmvc\AbstractApp
var

Type(s)

\Ascmvc\AbstractApp

Name of the command to run.

name : string
var

Type(s)

string

Contains the command's arguments.

arguments : array
var

Type(s)

array

Contains an instance of the class that will process the command.

commandProcess : mixed
var

Type(s)

mixed

Contains the command's standard output (STDOUT).

output : string
var

Type(s)

string

Contains the command's standard error (STDERR).

error : string
var

Type(s)

string