protected function configureEventManager(array $doctrineConfig, EventManager $eventManager)
    {
        if (isset($doctrineConfig['event_listeners'])) {
            foreach ($doctrineConfig['event_listeners'] as $name => $listener) {
                $eventManager->addEventListener($listener['events'], new $listener['class']);
            }
        }
    }
protected function configureEventManager(array $doctrineConfig, EventManager $eventManager)
    {
        if (isset($doctrineConfig['event_listeners'])) {
            foreach ($doctrineConfig['event_listeners'] as $name => $listener) {
                $eventManager->addEventListener($listener['events'], new $listener['class']);
            }
        }
    }
protected function configureEventManager ( array $ doctrineConfig , EventManager $ eventManager ) { if ( isset ( $ doctrineConfig [ 'event_listeners' ] ) ) { foreach ( $ doctrineConfig [ 'event_listeners' ] as $ name => $ listener ) { $ eventManager -> addEventListener ( $ listener [ 'events' ] , new $ listener [ 'class' ] ) ; } } }
Configures the Doctrine event manager instance.

@param array        $doctrineConfig
@param EventManager $eventManager
Configures the Doctrine event manager instance .