original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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); } }
docstring: Injects a shared event manager aware event manager.
  
  
  @param AssertionInterface      $assertion
  @param ServiceLocatorInterface $serviceLocator
docstring_tokens: Injects a shared event manager aware event manager .