aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Comments
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-09 13:53:41 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-09 13:53:41 +0100
commit4fc0b2c639f1dd3c67a038c532cf98138b813dbe (patch)
treef85a4dd880dca658ad3317751ce9649a16a9f78b /lib/public/Comments
parenta36186980dec315929a7e816042d613134bf7039 (diff)
downloadnextcloud-server-4fc0b2c639f1dd3c67a038c532cf98138b813dbe.tar.gz
nextcloud-server-4fc0b2c639f1dd3c67a038c532cf98138b813dbe.zip
Deprecate all remaining event constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/Comments')
-rw-r--r--lib/public/Comments/CommentsEntityEvent.php3
-rw-r--r--lib/public/Comments/CommentsEvent.php16
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Comments/CommentsEntityEvent.php b/lib/public/Comments/CommentsEntityEvent.php
index 17f3e76a996..7ae2968ead8 100644
--- a/lib/public/Comments/CommentsEntityEvent.php
+++ b/lib/public/Comments/CommentsEntityEvent.php
@@ -32,6 +32,9 @@ use OCP\EventDispatcher\Event;
* @since 9.1.0
*/
class CommentsEntityEvent extends Event {
+ /**
+ * @deprecated 22.0.0
+ */
public const EVENT_ENTITY = 'OCP\Comments\ICommentsManager::registerEntity';
/** @var string */
diff --git a/lib/public/Comments/CommentsEvent.php b/lib/public/Comments/CommentsEvent.php
index a8a27948e99..9090425aae5 100644
--- a/lib/public/Comments/CommentsEvent.php
+++ b/lib/public/Comments/CommentsEvent.php
@@ -32,9 +32,25 @@ use OCP\EventDispatcher\Event;
* @since 9.0.0
*/
class CommentsEvent extends Event {
+
+ /**
+ * @deprecated 22.0.0
+ */
public const EVENT_ADD = 'OCP\Comments\ICommentsManager::addComment';
+
+ /**
+ * @deprecated 22.0.0
+ */
public const EVENT_PRE_UPDATE = 'OCP\Comments\ICommentsManager::preUpdateComment';
+
+ /**
+ * @deprecated 22.0.0
+ */
public const EVENT_UPDATE = 'OCP\Comments\ICommentsManager::updateComment';
+
+ /**
+ * @deprecated 22.0.0
+ */
public const EVENT_DELETE = 'OCP\Comments\ICommentsManager::deleteComment';
/** @var string */