PHP 클래스 Crunz\EventRunner

상속: use trait Crunz\Configuration\Configurable
파일 보기 프로젝트 열기: lavary/crunz

보호된 프로퍼티들

프로퍼티 타입 설명
$invoker Invoker Instance of the invoker class
$logger Crunz\Logger\Logger The Logger
$mailer Mailer The Mailer
$schedules array Schedule objects

공개 메소드들

메소드 설명
__construct ( ) Instantiate the event runner
handle ( array $schedules = [] ) Handle an array of Schedule objects

보호된 메소드들

메소드 설명
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

메소드 상세

ManageStartedEvents() 보호된 메소드

Manage the running processes
protected ManageStartedEvents ( ) : void
리턴 void

__construct() 공개 메소드

Instantiate the event runner
public __construct ( )

display() 보호된 메소드

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

formatEventError() 보호된 메소드

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

formatEventOutput() 보호된 메소드

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

handle() 공개 메소드

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

handleError() 보호된 메소드

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

handleOutput() 보호된 메소드

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

invoke() 보호된 메소드

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

start() 보호된 메소드

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

프로퍼티 상세

$invoker 보호되어 있는 프로퍼티

Instance of the invoker class
protected Invoker,Crunz $invoker
리턴 Invoker

$logger 보호되어 있는 프로퍼티

The Logger
protected Logger,Crunz\Logger $logger
리턴 Crunz\Logger\Logger

$mailer 보호되어 있는 프로퍼티

The Mailer
protected Mailer,Crunz $mailer
리턴 Mailer

$schedules 보호되어 있는 프로퍼티

Schedule objects
protected array $schedules
리턴 array