public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $em = new EventManager();
        $em->setSharedManager($serviceLocator->get('SharedEventManager'));

        return $em;
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $em = new EventManager();
        $em->setSharedManager($serviceLocator->get('SharedEventManager'));

        return $em;
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ em = new EventManager ( ) ; $ em -> setSharedManager ( $ serviceLocator -> get ( 'SharedEventManager' ) ) ; return $ em ; }
Create an EventManager instance.

Creates a new EventManager instance, seeding it with a shared instance
of SharedEventManager.

@param ServiceLocatorInterface $serviceLocator

@return EventManager
Create an EventManager instance .