original_string: 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'];
      }
code: 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'];
      }
code_tokens: 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' ] ; }
docstring: Attach to a shared event manager
  
  @param  SharedEventManagerInterface $events
  @param  integer $priority
docstring_tokens: Attach to a shared event manager