public static setEventDispatcher ( Illuminate\Contracts\Events\Dispatcher $events ) | ||
$events | Illuminate\Contracts\Events\Dispatcher |
public static function setEventDispatcher(Dispatcher $events)
{
static::$events = $events;
}
/** * {@inheritdoc} */ public function boot() { $this->registerNotificationSerializers(); AbstractSerializeController::setContainer($this->app); AbstractSerializeController::setEventDispatcher($events = $this->app->make('events')); AbstractSerializer::setContainer($this->app); AbstractSerializer::setEventDispatcher($events); }