Skip to content

Commit 4c44601

Browse files
committed
bug #551 make:subscriber: fix list active event (maxhelias)
This PR was merged into the 1.0-dev branch. Discussion ---------- make:subscriber: fix list active event With an addtionnal bundle or a component like "security-bundle", we have an exception ``` Notice: Undefined index: debug.security.authorization.vote ``` Now the mapping is good : ![Capture d’écran 2020-03-03 à 15 23 00](https://user-images.githubusercontent.com/12966574/75784721-ee098180-5d62-11ea-9ab5-0e64b6efd254.png) Commits ------- 8789d9d make:subscriber: fix list active event
2 parents b06ebe5 + 8789d9d commit 4c44601

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/EventRegistry.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ public function getAllActiveEvents(): array
107107
if (isset(self::$newEventsMap[$listenerKey])) {
108108
unset($listeners[$listenerKey]);
109109
}
110+
111+
if (!isset(self::$eventsMap[$listenerKey])) {
112+
self::$eventsMap[$listenerKey] = $this->getEventClassName($listenerKey);
113+
}
110114
}
111115

112116
$activeEvents = array_unique(array_merge($activeEvents, array_keys($listeners)));

0 commit comments

Comments
 (0)