public function execute(ConnectionInterface $connection, array $argv)
    {

        // initialize input/output instances
        $input = new ArgvInput($argv);
        $output = new BufferedOutput();

        // initialize the execution context
        $executionContext = new ExecutionContext();
        $executionContext->injectInput($input);
        $executionContext->injectOutput($output);
        $executionContext->injectApplication($this->getApplication());

        // start the execution context
        $executionContext->start();
        $executionContext->join();

        // write the result back to the connection
        $executionContext->write($connection);
    }
public function execute(ConnectionInterface $connection, array $argv)
    {

        // initialize input/output instances
        $input = new ArgvInput($argv);
        $output = new BufferedOutput();

        // initialize the execution context
        $executionContext = new ExecutionContext();
        $executionContext->injectInput($input);
        $executionContext->injectOutput($output);
        $executionContext->injectApplication($this->getApplication());

        // start the execution context
        $executionContext->start();
        $executionContext->join();

        // write the result back to the connection
        $executionContext->write($connection);
    }
public function execute ( ConnectionInterface $ connection , array $ argv ) { // initialize input/output instances $ input = new ArgvInput ( $ argv ) ; $ output = new BufferedOutput ( ) ; // initialize the execution context $ executionContext = new ExecutionContext ( ) ; $ executionContext -> injectInput ( $ input ) ; $ executionContext -> injectOutput ( $ output ) ; $ executionContext -> injectApplication ( $ this -> getApplication ( ) ) ; // start the execution context $ executionContext -> start ( ) ; $ executionContext -> join ( ) ; // write the result back to the connection $ executionContext -> write ( $ connection ) ; }
Executes the command with defined by the passed input.

@param \React\Socket\ConnectionInterface $connection The socket connection
@param array                             $argv       The arguments from the console

@return void
Executes the command with defined by the passed input .