PHP 클래스 MongolidLaravel\LaravelEventTrigger

상속: implements Mongolid\Event\EventTriggerInterface
파일 보기 프로젝트 열기: leroy-merlin-br/mongolid-laravel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dispatcher Illuminate\Contracts\Events\Dispatcher Laravel's Event dispatcher.

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Events\Dispatcher $dispatcher ) Injects a Laravel's event dispatcher instance.
fire ( string $event, mixed $payload, boolean $halt ) : mixed Triggers / Dispatches a new event to the event handlers or listeners that are being used.

메소드 상세

__construct() 공개 메소드

Injects a Laravel's event dispatcher instance.
public __construct ( Illuminate\Contracts\Events\Dispatcher $dispatcher )
$dispatcher Illuminate\Contracts\Events\Dispatcher Event dispatcher.

fire() 공개 메소드

Triggers / Dispatches a new event to the event handlers or listeners that are being used.
public fire ( string $event, mixed $payload, boolean $halt ) : mixed
$event string Identification of the event.
$payload mixed Data that is going to be sent to the event handler.
$halt boolean The output of the event handler will be used in a conditional inside the context of where the event is being fired. This means that, if the event handler returns false, it will probably stop the action being executed, for example, "saving".
리턴 mixed Event handler return. The importance of this return is determined by $halt

프로퍼티 상세

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

Laravel's Event dispatcher.
protected Dispatcher,Illuminate\Contracts\Events $dispatcher
리턴 Illuminate\Contracts\Events\Dispatcher