PHP Class Crunz\EventRunner

Inheritance: use trait Crunz\Configuration\Configurable
Afficher le fichier Open project: lavary/crunz

Protected Properties

Свойство Type Description
$invoker Invoker Instance of the invoker class
$logger Crunz\Logger\Logger The Logger
$mailer Mailer The Mailer
$schedules array Schedule objects

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

Manage the running processes
protected ManageStartedEvents ( ) : void
Résultat void

__construct() public méthode

Instantiate the event runner
public __construct ( )

display() protected méthode

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

formatEventError() protected méthode

Format the event error message
protected formatEventError ( Event $event ) : string
$event Event
Résultat string

formatEventOutput() protected méthode

Format the event output
protected formatEventOutput ( Event $event ) : string
$event Event
Résultat string

handle() public méthode

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

handleError() protected méthode

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

handleOutput() protected méthode

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

invoke() protected méthode

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

start() protected méthode

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
Résultat Invoker

$logger protected_oe property

The Logger
protected Logger,Crunz\Logger $logger
Résultat Crunz\Logger\Logger

$mailer protected_oe property

The Mailer
protected Mailer,Crunz $mailer
Résultat Mailer

$schedules protected_oe property

Schedule objects
protected array $schedules
Résultat array