public function restoreAllEventListeners()
    {
        $eventManager = $this->getEventManager();

        foreach ($this->disabledListeners as $event => $listeners) {
            /* @var EventSubscriber[] $listeners */
            foreach ($listeners as $listener) {
                $eventManager->addEventListener($event, $listener);
            }

            $this->disabledListeners[$event] = [];
        }
    }
public function restoreAllEventListeners()
    {
        $eventManager = $this->getEventManager();

        foreach ($this->disabledListeners as $event => $listeners) {
            /* @var EventSubscriber[] $listeners */
            foreach ($listeners as $listener) {
                $eventManager->addEventListener($event, $listener);
            }

            $this->disabledListeners[$event] = [];
        }
    }
public function restoreAllEventListeners ( ) { $ eventManager = $ this -> getEventManager ( ) ; foreach ( $ this -> disabledListeners as $ event => $ listeners ) { /* @var EventSubscriber[] $listeners */ foreach ( $ listeners as $ listener ) { $ eventManager -> addEventListener ( $ event , $ listener ) ; } $ this -> disabledListeners [ $ event ] = [ ] ; } }
Restore all disabled listeners.
Restore all disabled listeners .