public function onBootstrap(MvcEvent $event)
    {
        $sharedEventManager = $event->getApplication()->getEventManager()->getSharedManager();
        $sharedEventManager->attach(
            AbstractActionController::class,
            MvcEvent::EVENT_DISPATCH,
            [$this, 'onDispatchedListener'],
            self::DISPATCH_PRIORITY
        );
    }
public function onBootstrap(MvcEvent $event)
    {
        $sharedEventManager = $event->getApplication()->getEventManager()->getSharedManager();
        $sharedEventManager->attach(
            AbstractActionController::class,
            MvcEvent::EVENT_DISPATCH,
            [$this, 'onDispatchedListener'],
            self::DISPATCH_PRIORITY
        );
    }
public function onBootstrap ( MvcEvent $ event ) { $ sharedEventManager = $ event -> getApplication ( ) -> getEventManager ( ) -> getSharedManager ( ) ; $ sharedEventManager -> attach ( AbstractActionController :: class , MvcEvent :: EVENT_DISPATCH , [ $ this , 'onDispatchedListener' ] , self :: DISPATCH_PRIORITY ) ; }
Module bootstrap handler

@param MvcEvent $event
Module bootstrap handler