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