AsyncCommand

Extends \Symfony\Component\Console\Command\Command

Class AsyncCommand

package

Ascmvc\EventSourcing

Methods

AsyncCommand constructor.

__construct(\Ascmvc\AbstractApp $webapp) 

Arguments

Configures the current command.

configure() 

Executes the current command.

execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) : integer|null

This method is not abstract because you can use this class as a concrete class. In this case, instead of defining the execute() method, you set the code to execute by passing a Closure to the setCode() method.

see \Ascmvc\EventSourcing\setCode()
Throws
\Symfony\Component\Console\Exception\LogicException

When this abstract method is not implemented

Arguments

$input

\Symfony\Component\Console\Input\InputInterface

$output

\Symfony\Component\Console\Output\OutputInterface

Response

integer|null

null or 0 if everything went fine, or an error code

Gets the instance of the AbstractApp class.

getWebapp() : \Ascmvc\AbstractApp

Properties

Contains an instance of the AbstractApp class.

webapp : \Ascmvc\AbstractApp
var

Type(s)

\Ascmvc\AbstractApp

Name of the command.

defaultName : string
static
var

Type(s)

string