public function injectEventManager($assertion, $serviceLocator)
    {
    	//@TODO: [ZF3] check if ACL working properly
        /* @var $serviceLocator AssertionManager */

        if (!$assertion instanceof EventManagerAwareInterface) {
            return;
        }
        /* @var EventManager $events */
	    $container = $this->container;
        $events = $assertion->getEventManager();
        if (!$events instanceof EventManagerInterface) {
            $events = $container->get('EventManager'); /* @var $events \Zend\EventManager\EventManagerInterface */
            $assertion->setEventManager($events);
        } else {
        	//@TODO: [ZF3] setSharedManager method now is removed
            //$sharedEvents = $container->get('SharedEventManager'); /* @var $sharedEvents \Zend\EventManager\SharedEventManagerInterface */
            //$events->setSharedManager($sharedEvents);
        }
    }
public function injectEventManager($assertion, $serviceLocator)
    {
    	//@TODO: [ZF3] check if ACL working properly
        /* @var $serviceLocator AssertionManager */

        if (!$assertion instanceof EventManagerAwareInterface) {
            return;
        }
        /* @var EventManager $events */
	    $container = $this->container;
        $events = $assertion->getEventManager();
        if (!$events instanceof EventManagerInterface) {
            $events = $container->get('EventManager'); /* @var $events \Zend\EventManager\EventManagerInterface */
            $assertion->setEventManager($events);
        } else {
        	//@TODO: [ZF3] setSharedManager method now is removed
            //$sharedEvents = $container->get('SharedEventManager'); /* @var $sharedEvents \Zend\EventManager\SharedEventManagerInterface */
            //$events->setSharedManager($sharedEvents);
        }
    }
public function injectEventManager ( $ assertion , $ serviceLocator ) { //@TODO: [ZF3] check if ACL working properly /* @var $serviceLocator AssertionManager */ if ( ! $ assertion instanceof EventManagerAwareInterface ) { return ; } /* @var EventManager $events */ $ container = $ this -> container ; $ events = $ assertion -> getEventManager ( ) ; if ( ! $ events instanceof EventManagerInterface ) { $ events = $ container -> get ( 'EventManager' ) ; /* @var $events \Zend\EventManager\EventManagerInterface */ $ assertion -> setEventManager ( $ events ) ; } else { //@TODO: [ZF3] setSharedManager method now is removed //$sharedEvents = $container->get('SharedEventManager'); /* @var $sharedEvents \Zend\EventManager\SharedEventManagerInterface */ //$events->setSharedManager($sharedEvents); } }
Injects a shared event manager aware event manager.


@param AssertionInterface      $assertion
@param ServiceLocatorInterface $serviceLocator
Injects a shared event manager aware event manager .