2323use OCP \AppFramework \Bootstrap \IBootstrap ;
2424use OCP \AppFramework \Bootstrap \IRegistrationContext ;
2525use OCP \Comments \CommentsEntityEvent ;
26- use OCP \Comments \CommentsEvent ;
26+ use OCP \Comments \Events \BeforeCommentUpdatedEvent ;
27+ use OCP \Comments \Events \CommentAddedEvent ;
28+ use OCP \Comments \Events \CommentDeletedEvent ;
29+ use OCP \Comments \Events \CommentUpdatedEvent ;
2730
2831class Application extends App implements IBootstrap {
2932 public const APP_ID = 'comments ' ;
@@ -49,7 +52,19 @@ public function register(IRegistrationContext $context): void {
4952 CommentsEntityEventListener::class
5053 );
5154 $ context ->registerEventListener (
52- CommentsEvent::class,
55+ CommentAddedEvent::class,
56+ CommentsEventListener::class,
57+ );
58+ $ context ->registerEventListener (
59+ BeforeCommentUpdatedEvent::class,
60+ CommentsEventListener::class,
61+ );
62+ $ context ->registerEventListener (
63+ CommentUpdatedEvent::class,
64+ CommentsEventListener::class,
65+ );
66+ $ context ->registerEventListener (
67+ CommentDeletedEvent::class,
5368 CommentsEventListener::class,
5469 );
5570
0 commit comments