{@inheritDoc}
@see \Zend\Mvc\Controller\AbstractController::setEventManager()
7547
public function setEventManager(EventManagerInterface $events) {
	    parent::setEventManager($events);
		$controller = $this;
		$events->attach('dispatch', function ($e) use ($controller) {
			$controller->layout('layout/cathedral/builder');
		}, 100);
	}
1080520
public function getEventManager()
    {
        if (!$this->events instanceof EventManagerInterface) {
            $identifiers = array(__CLASS__, get_called_class());
            if (isset($this->eventIdentifier)) {
                if ((is_string($this->eventIdentifier))
                    || (is_array($this->eventIdentifier))
                    || ($this->eventIdentifier instanceof Traversable)
                ) {
                    $identifiers = array_unique($identifiers + (array) $this->eventIdentifier);
                } elseif (is_object($this->eventIdentifier)) {
                    $identifiers[] = $this->eventIdentifier;
                }
                // silently ignore invalid eventIdentifier types
            }
            $this->setEventManager(new EventManager($identifiers));
        }
        return $this->events;
    }
1018380
public function setEvents(&$var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Mvccpb\Event::class);
        $this->events = $arr;
    }
602119
public function setEvent(\Spatie\ServerMonitor\Events\Event $event): self
    {
        $this->event = $event;

        return $this;
    }
82138
public function setMessage($type, $message, $value = null, $len = 25)
    {
        if (!in_array(strtolower($type), self::$_allowedTypes)) {
            throw new \Zend_Controller_Action_Exception('Incorrect type of message!');
        }

        if (!\Zend_Validate::is($len, 'Int')) {
            throw new \Zend_Controller_Action_Exception("Param 'len' must be a int value!");
        }

        if (null !== $this->_translator) {
            $message = $this->_translator->translate($message);
        }

        if (null !== $value) {
            if (strlen($value) > $len) {
                $value = mb_substr($value, 0, $len, 'UTF-8') . '..';
            }

            $message = str_replace(self::VALUE_PATTERN, $value, $message);
        }

        self::$_session->setExpirationHops(1, null, true);
        self::$_session->{$this->_namespace} = array(strtolower($type) => $message);
        self::$_messageAdded = true;

        return $this;
    }
942743
public function init($moduleManager)
    {
        $event = $moduleManager->getEvent();
        $container = $event->getParam('ServiceManager');
        $serviceListener = $container->get('ServiceListener');

        $serviceListener->addServiceManager(
            'FilterManager',
            'filters',
            'Zend\ModuleManager\Feature\FilterProviderInterface',
            'getFilterConfig'
        );
    }
568358
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']);
            }
        }
    }
654069
public static function getEventManager()
    {
        if (!isset(self::$event_manager[get_called_class()])) {
            self::$event_manager[get_called_class()] =
                EventDispatcher::getShareable(static::$static_scope);
        }
        return self::$event_manager[get_called_class()];
    }
570976
public function setMessage(\AgentSIB\Diadoc\Api\Proto\Events\Message $value = null)
    {
        $this->Message = $value;
    }
606136
public function getEventManager()
    {
        if ($this->eventManager === null) {
            $this->eventManager = \FreeFW\Listener\EventManager::getInstance();
        }
        return $this->eventManager;
    }
115106
public function setEventManager(EventManagerInterface $events)
    {
        $events->setIdentifiers(array(
            __CLASS__,
            get_class($this),
        ));
        $events->attach(new OperationAnnotationsListener());
        $events->attach(new ServiceAnnotationsListener());
        $this->events = $events;
        return $this;
    }
113083
public function setEventManager(EventManagerInterface $events)
    {
        $events->setIdentifiers(array(
            __CLASS__,
            get_class($this)
        ));
        $events->setSharedManager(
            $this->getContainer()->get("sharedEventManager")
        );
        $this->_events = $events;
        return $this;
    }
151166
public function getEventsManager() {
		if ($this->_eventsManager === null) {
			if ($this instanceof LocatorAwareInterface && $this->hasLocator()) {
				$this->_eventsManager = $this->getLocator()->get($this->getEventsManagerServiceId());
				
				if (! $this->_eventsManager instanceof EventsManagerInterface) {
					throw new NoEventsManager('Event\'s manager must implement "EventsManagerInterface"');
				}
			} else {
				throw new NoEventsManager('No Events manager been supplied, also unable to obtain one through locator');
			}
		}
		
		return $this->_eventsManager;
	}
830338
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher)
	{
		$this->eventDispatcher = $eventDispatcher;
		$this->twig->setEventDispatcher($eventDispatcher);
	}
644533
public function getEventsManager() {
    if (!is_object(parent::getEventsManager())) {
      $em = $this->getUserOption('eventsManager');
      if (!is_object($em)) {
        $em = new EventsManager();
      }
      $em->enablePriorities(true);
      $this->setEventsManager($em);
    }
    return parent::getEventsManager();
  }
626357
public function setEvent($event, array $params = []): self
    {
        $event = $this->wrapperEvent($event, null, $params);

        if ($event instanceof EventInterface) {
            $this->events[$event->getName()] = $event;
        }

        return $this;
    }
963310
public function setEvent(\Claroline\AgendaBundle\Entity\Event $event)
    {
        $this->event = $event;

        return $this;
    }