Skip to content

Commit a44deac

Browse files
CarlSchwancome-nc
andcommitted
chore: Add comment about deprecation
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent da5c8b7 commit a44deac

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/comments/lib/Listener/CommentsEventListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function handle(Event $event): void {
4040
|| $event instanceof CommentUpdatedEvent
4141
|| $event instanceof CommentDeletedEvent
4242
|| $event instanceof BeforeCommentUpdatedEvent) {
43+
// Dispatch the deprecated event name for backward compatibility
4344
$this->eventDispatcher->dispatchTyped(new CommentsEvent($event->getEvent(), $event->getComment()));
4445
}
4546

0 commit comments

Comments
 (0)