original_string: public function onBootstrap(MvcEvent $e)
      {
          $manager = Container::getDefaultManager();
          if (!$manager->sessionExists()) {
              return;
          }
  
          $app = $e->getApplication();
          /** @var \Zend\EventManager\SharedEventManagerInterface $sharedEvm */
          $sharedEvm = $app->getEventManager()->getSharedManager();
  
          $sharedEvm->attach(
              AbstractActionController::class,
              'dispatch',
              [$this, 'flashMessengerHandler'],
              2
          );
      }
code: public function onBootstrap(MvcEvent $e)
      {
          $manager = Container::getDefaultManager();
          if (!$manager->sessionExists()) {
              return;
          }
  
          $app = $e->getApplication();
          /** @var \Zend\EventManager\SharedEventManagerInterface $sharedEvm */
          $sharedEvm = $app->getEventManager()->getSharedManager();
  
          $sharedEvm->attach(
              AbstractActionController::class,
              'dispatch',
              [$this, 'flashMessengerHandler'],
              2
          );
      }
code_tokens: public function onBootstrap ( MvcEvent $ e ) { $ manager = Container :: getDefaultManager ( ) ; if ( ! $ manager -> sessionExists ( ) ) { return ; } $ app = $ e -> getApplication ( ) ; /** @var \Zend\EventManager\SharedEventManagerInterface $sharedEvm */ $ sharedEvm = $ app -> getEventManager ( ) -> getSharedManager ( ) ; $ sharedEvm -> attach ( AbstractActionController :: class , 'dispatch' , [ $ this , 'flashMessengerHandler' ] , 2 ) ; }
docstring: Bootstrap Handle FlashMessenger session show.
docstring_tokens: Bootstrap Handle FlashMessenger session show .