KMP PHP API Reference

RunCommand extends Command
in package

Main execution of queued jobs.

Table of Contents

Properties

$container  : ContainerInterface

Methods

__construct()  : mixed
defaultName()  : string
execute()  : int
Run a QueueWorker loop.
getOptionParser()  : ConsoleOptionParser
getLogger()  : LoggerInterface

Properties

$container

protected ContainerInterface $container

Methods

__construct()

public __construct(ContainerInterface $container) : mixed
Parameters
$container : ContainerInterface

defaultName()

public static defaultName() : string
Tags
inheritDoc
Return values
string

execute()

Run a QueueWorker loop.

public execute(Arguments $args, ConsoleIo $io) : int

Runs a Queue Worker process which will try to find unassigned jobs in the queue which it may run and try to fetch and execute them.

Parameters
$args : Arguments

Arguments

$io : ConsoleIo

ConsoleIo

Return values
int

getOptionParser()

public getOptionParser() : ConsoleOptionParser
Return values
ConsoleOptionParser

getLogger()

protected getLogger(Arguments $args) : LoggerInterface
Parameters
$args : Arguments

Arguments

Return values
LoggerInterface

        
On this page

Search results