From 13d52f4b15376c6d0048f00ed509a4d6ec9223f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Wed, 15 May 2019 17:00:44 +0200 Subject: [PATCH] Backport IReactionObject to version 3.0 This backport ensures the compatibility for version 3.0 (and above) and version 5.2. With this commit, plugins can fully support the reaction system and the like system, previously this was only possible to a limited extent. See #2508 --- .../reaction/object/IReactionObject.class.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 wcfsetup/install/files/lib/data/reaction/object/IReactionObject.class.php diff --git a/wcfsetup/install/files/lib/data/reaction/object/IReactionObject.class.php b/wcfsetup/install/files/lib/data/reaction/object/IReactionObject.class.php new file mode 100644 index 0000000000..32c48e5b6e --- /dev/null +++ b/wcfsetup/install/files/lib/data/reaction/object/IReactionObject.class.php @@ -0,0 +1,21 @@ + + * @package WoltLabSuite\Core\Data\Reaction\Object + * @since 3.0 + */ +interface IReactionObject { + /** + * Sends a notification for this reaction. + * + * @param Like $like + */ + public function sendNotification(Like $like); +} -- 2.20.1