public function detachShared(SharedEventManagerInterface $events)
    {
        if ($events->detach($this->listener,'Zend\Mvc\Application')) {
            $this->listener = null;
        }
        return $this;
    }
public function detachShared(SharedEventManagerInterface $events)
    {
        if ($events->detach($this->listener,'Zend\Mvc\Application')) {
            $this->listener = null;
        }
        return $this;
    }
public function detachShared ( SharedEventManagerInterface $ events ) { if ( $ events -> detach ( $ this -> listener , 'Zend\Mvc\Application' ) ) { $ this -> listener = null ; } return $ this ; }
Detach all our listeners from the event manager

@param  SharedEventManagerInterface $events
@return $this
Detach all our listeners from the event manager