private function registerEvents()
    {
        foreach ($this->getSetting('events', []) as $event => $listeners) {
            foreach ($listeners as $listener) {
                Event::bind($event, $listener);
            }
        }
    }
private function registerEvents()
    {
        foreach ($this->getSetting('events', []) as $event => $listeners) {
            foreach ($listeners as $listener) {
                Event::bind($event, $listener);
            }
        }
    }
private function registerEvents ( ) { foreach ( $ this -> getSetting ( 'events' , [ ] ) as $ event => $ listeners ) { foreach ( $ listeners as $ listener ) { Event :: bind ( $ event , $ listener ) ; } } }
Register custom events.
Register custom events .