/** * @param string $event * @param null $eventArgs * @return \Enlight_Event_EventArgs|null * @throws \Enlight_Exception */ public function notifyUntil($event, $eventArgs = null) { $cancel = parent::notifyUntil($event, $eventArgs); $this->calledEvents[] = ['type' => 'notifyUntil', 'name' => $event, 'args' => Debug::dump($eventArgs, 2, true, false), 'cancel' => is_object($cancel) ? Debug::dump($cancel, 2, true, false) : $cancel]; return $cancel; }