public function getAllActiveEvents(): array
    {
        $activeEvents = [];
        foreach (self::$eventsMap as $eventName => $eventClass) {
            if (!class_exists($eventClass)) {
                continue;
            }

            $activeEvents[] = $eventName;
        }

        $listeners = $this->eventDispatcher->getListeners();
        $activeEvents = array_unique(array_merge($activeEvents, array_keys($listeners)));

        asort($activeEvents);

        return $activeEvents;
    }
public function getAllActiveEvents(): array
    {
        $activeEvents = [];
        foreach (self::$eventsMap as $eventName => $eventClass) {
            if (!class_exists($eventClass)) {
                continue;
            }

            $activeEvents[] = $eventName;
        }

        $listeners = $this->eventDispatcher->getListeners();
        $activeEvents = array_unique(array_merge($activeEvents, array_keys($listeners)));

        asort($activeEvents);

        return $activeEvents;
    }
public function getAllActiveEvents ( ) : array { $ activeEvents = [ ] ; foreach ( self :: $ eventsMap as $ eventName => $ eventClass ) { if ( ! class_exists ( $ eventClass ) ) { continue ; } $ activeEvents [ ] = $ eventName ; } $ listeners = $ this -> eventDispatcher -> getListeners ( ) ; $ activeEvents = array_unique ( array_merge ( $ activeEvents , array_keys ( $ listeners ) ) ) ; asort ( $ activeEvents ) ; return $ activeEvents ; }
Returns all known event names in the system.
Returns all known event names in the system .