aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Comments/ICommentsEventHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Comments/ICommentsEventHandler.php')
-rw-r--r--lib/public/Comments/ICommentsEventHandler.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/public/Comments/ICommentsEventHandler.php b/lib/public/Comments/ICommentsEventHandler.php
new file mode 100644
index 00000000000..148ead2c367
--- /dev/null
+++ b/lib/public/Comments/ICommentsEventHandler.php
@@ -0,0 +1,22 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCP\Comments;
+
+/**
+ * Interface ICommentsEventHandler
+ *
+ * @since 11.0.0
+ * @deprecated 30.0.0 Register a listener for the CommentsEvent through the IEventDispatcher
+ */
+interface ICommentsEventHandler {
+ /**
+ * @param CommentsEvent $event
+ * @since 11.0.0
+ * @deprecated 30.0.0 Register a listener for the CommentsEvent through the IEventDispatcher
+ */
+ public function handle(CommentsEvent $event);
+}