public function detach(EventManagerInterface $events)
    {
        foreach ($this->listeners as $listener) {
            $events->detach($listener);
        }
    }
public function detach(EventManagerInterface $events)
    {
        foreach ($this->listeners as $listener) {
            $events->detach($listener);
        }
    }
public function detach ( EventManagerInterface $ events ) { foreach ( $ this -> listeners as $ listener ) { $ events -> detach ( $ listener ) ; } }
Detach event listeners

@param EventManagerInterface $events
@see \Zend\EventManager\ListenerAggregateInterface::detach()
Detach event listeners