protected function registerEvents()
    {
        $events = $this->app->make(Dispatcher::class);

        foreach ($this->events as $event => $listeners) {
            foreach ($listeners as $listener) {
                $events->listen($event, $listener);
            }
        }
    }
protected function registerEvents()
    {
        $events = $this->app->make(Dispatcher::class);

        foreach ($this->events as $event => $listeners) {
            foreach ($listeners as $listener) {
                $events->listen($event, $listener);
            }
        }
    }
protected function registerEvents ( ) { $ events = $ this -> app -> make ( Dispatcher :: class ) ; foreach ( $ this -> events as $ event => $ listeners ) { foreach ( $ listeners as $ listener ) { $ events -> listen ( $ event , $ listener ) ; } } }
Register the Horizon job events.

@return void
Register the Horizon job events .