Skip to content

Commit 96f7c55

Browse files
CarlSchwancome-nc
andauthored
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 3486d04 commit 96f7c55

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
@@ -39,6 +39,7 @@ public function handle(Event $event): void {
3939
|| $event instanceof CommentUpdatedEvent
4040
|| $event instanceof CommentDeletedEvent
4141
|| $event instanceof BeforeCommentUpdatedEvent) {
42+
// Dispatch the deprecated event name for backward compatibility
4243
$this->eventDispatcher->dispatchTyped(new CommentsEvent($event->getEvent(), $event->getComment()));
4344
}
4445

0 commit comments

Comments
 (0)