File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,6 @@ public function __construct(EventDispatcherInterface $eventDispatcher)
82
82
//Check if the new event classes exist, if so replace the old one with the new.
83
83
if (isset (self ::$ eventsMap [$ eventName ]) && class_exists ($ newEventClass )) {
84
84
self ::$ eventsMap [$ eventName ] = $ newEventClass ;
85
- // unset(self::$eventsMap[$eventName]);
86
- // self::$eventsMap[Str::getShortClassName($newEventClass)] = $newEventClass;
87
85
}
88
86
}
89
87
}
@@ -164,8 +162,8 @@ public function getEventClassName(string $event)
164
162
165
163
public function listActiveEvents (array $ events )
166
164
{
167
- foreach ($ events as & $ event ) {
168
- $ event . = sprintf (' (<fg=yellow>%s</>) ' , self ::$ eventsMap [$ event ]);
165
+ foreach ($ events as $ key => $ event ) {
166
+ $ events [ $ key ] = sprintf ('%s (<fg=yellow>%s</>) ' , $ event , self ::$ eventsMap [$ event ]);
169
167
}
170
168
171
169
return $ events ;
You can’t perform that action at this time.
0 commit comments