mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #60149 from nextcloud/backport/59909/stable33
[stable33] fix(comments): register event listener for typed comment events
This commit is contained in:
commit
2ec13d4dbd
1 changed files with 17 additions and 2 deletions
|
|
@ -21,7 +21,10 @@ use OCP\AppFramework\Bootstrap\IBootContext;
|
|||
use OCP\AppFramework\Bootstrap\IBootstrap;
|
||||
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
||||
use OCP\Comments\CommentsEntityEvent;
|
||||
use OCP\Comments\CommentsEvent;
|
||||
use OCP\Comments\Events\BeforeCommentUpdatedEvent;
|
||||
use OCP\Comments\Events\CommentAddedEvent;
|
||||
use OCP\Comments\Events\CommentDeletedEvent;
|
||||
use OCP\Comments\Events\CommentUpdatedEvent;
|
||||
|
||||
class Application extends App implements IBootstrap {
|
||||
public const APP_ID = 'comments';
|
||||
|
|
@ -46,7 +49,19 @@ class Application extends App implements IBootstrap {
|
|||
CommentsEntityEventListener::class
|
||||
);
|
||||
$context->registerEventListener(
|
||||
CommentsEvent::class,
|
||||
CommentAddedEvent::class,
|
||||
CommentsEventListener::class,
|
||||
);
|
||||
$context->registerEventListener(
|
||||
BeforeCommentUpdatedEvent::class,
|
||||
CommentsEventListener::class,
|
||||
);
|
||||
$context->registerEventListener(
|
||||
CommentUpdatedEvent::class,
|
||||
CommentsEventListener::class,
|
||||
);
|
||||
$context->registerEventListener(
|
||||
CommentDeletedEvent::class,
|
||||
CommentsEventListener::class,
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue