public function attachShared(SharedEventManagerInterface $events, $priority = 1000)
    {
        /* @var $events \Zend\EventManager\SharedEventManager */
        $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_BOOTSTRAP, array($this, 'onBootstrap'), $priority);
        $this->listener = [$this,'onBootstrap'];
    }
public function attachShared(SharedEventManagerInterface $events, $priority = 1000)
    {
        /* @var $events \Zend\EventManager\SharedEventManager */
        $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_BOOTSTRAP, array($this, 'onBootstrap'), $priority);
        $this->listener = [$this,'onBootstrap'];
    }
public function attachShared ( SharedEventManagerInterface $ events , $ priority = 1000 ) { /* @var $events \Zend\EventManager\SharedEventManager */ $ events -> attach ( 'Zend\Mvc\Application' , MvcEvent :: EVENT_BOOTSTRAP , array ( $ this , 'onBootstrap' ) , $ priority ) ; $ this -> listener = [ $ this , 'onBootstrap' ] ; }
Attach to a shared event manager

@param  SharedEventManagerInterface $events
@param  integer $priority
Attach to a shared event manager