src/Event/MailEventListenerAwareTrait.php
public function clearListeners()
    {
        foreach ($this->listeners as $listener) {
            $listener->detach($this->getEventManager());
        }

        $this->listeners = [];
    }
public function clearListeners()
    {
        foreach ($this->listeners as $listener) {
            $listener->detach($this->getEventManager());
        }

        $this->listeners = [];
    }
public function clearListeners ( ) { foreach ( $ this -> listeners as $ listener ) { $ listener -> detach ( $ this -> getEventManager ( ) ) ; } $ this -> listeners = [ ] ; }
Detach an clear listeners array
Detach an clear listeners array