public function onBootstrap($e)
    {
        $eventManager   = $e->getApplication()->getEventManager();
        $serviceManager = $e->getApplication()->getServiceManager();
        $options        = $serviceManager->get('dlcdoctrine_module_options');
        
        if ($options->getEnableAutoFlushFinishListener()) {
            $serviceManager->get('dlcdoctrine_event_finishlistener')
                           ->attach($eventManager);
        }
    }
public function onBootstrap($e)
    {
        $eventManager   = $e->getApplication()->getEventManager();
        $serviceManager = $e->getApplication()->getServiceManager();
        $options        = $serviceManager->get('dlcdoctrine_module_options');
        
        if ($options->getEnableAutoFlushFinishListener()) {
            $serviceManager->get('dlcdoctrine_event_finishlistener')
                           ->attach($eventManager);
        }
    }
public function onBootstrap ( $ e ) { $ eventManager = $ e -> getApplication ( ) -> getEventManager ( ) ; $ serviceManager = $ e -> getApplication ( ) -> getServiceManager ( ) ; $ options = $ serviceManager -> get ( 'dlcdoctrine_module_options' ) ; if ( $ options -> getEnableAutoFlushFinishListener ( ) ) { $ serviceManager -> get ( 'dlcdoctrine_event_finishlistener' ) -> attach ( $ eventManager ) ; } }
Registering module-specific listeners

@param  \Zend\Mvc\MvcEvent $e The MvcEvent instance
@return void
Registering module - specific listeners