PHP Class Crunz\EventRunner

Inheritance: use trait Crunz\Configuration\Configurable
Datei anzeigen Open project: lavary/crunz

Protected Properties

Property Type Description
$invoker Invoker Instance of the invoker class
$logger Crunz\Logger\Logger The Logger
$mailer Mailer The Mailer
$schedules array Schedule objects

Public Methods

Method Description
__construct ( ) Instantiate the event runner
handle ( array $schedules = [] ) Handle an array of Schedule objects

Protected Methods

Method Description
ManageStartedEvents ( ) : void Manage the running processes
display ( string $output ) Display content
formatEventError ( Event $event ) : string Format the event error message
formatEventOutput ( Event $event ) : string Format the event output
handleError ( Event $event ) Handle errors
handleOutput ( Event $event ) Handle output
invoke ( array $callbacks = [], array $parameters = [] ) : string Invoke an array of callables
start ( Event $event ) Run an event process

Method Details

ManageStartedEvents() protected method

Manage the running processes
protected ManageStartedEvents ( ) : void
return void

__construct() public method

Instantiate the event runner
public __construct ( )

display() protected method

Display content
protected display ( string $output )
$output string

formatEventError() protected method

Format the event error message
protected formatEventError ( Event $event ) : string
$event Event
return string

formatEventOutput() protected method

Format the event output
protected formatEventOutput ( Event $event ) : string
$event Event
return string

handle() public method

Handle an array of Schedule objects
public handle ( array $schedules = [] )
$schedules array

handleError() protected method

Handle errors
protected handleError ( Event $event )
$event Event

handleOutput() protected method

Handle output
protected handleOutput ( Event $event )
$event Event

invoke() protected method

Invoke an array of callables
protected invoke ( array $callbacks = [], array $parameters = [] ) : string
$callbacks array
$parameters array
return string

start() protected method

Run an event process
protected start ( Event $event )
$event Event

Property Details

$invoker protected_oe property

Instance of the invoker class
protected Invoker,Crunz $invoker
return Invoker

$logger protected_oe property

The Logger
protected Logger,Crunz\Logger $logger
return Crunz\Logger\Logger

$mailer protected_oe property

The Mailer
protected Mailer,Crunz $mailer
return Mailer

$schedules protected_oe property

Schedule objects
protected array $schedules
return array