From ba89588f8449b2d03cc005aeaf6f2c7d28802fc7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Fri, 22 Jun 2018 17:46:42 +0200 Subject: [PATCH] Add IReactionObject interface for LikeableObjects This interface should help to determine whether the plugin has been adapted to API 3.2. If a LikeableObject does not implement this interface, no notification will be sent. See #2508 --- .../reaction/object/IReactionObject.class.php | 23 +++++++++++++++++++ 1 file changed, 23 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..e02baf97d4 --- /dev/null +++ b/wcfsetup/install/files/lib/data/reaction/object/IReactionObject.class.php @@ -0,0 +1,23 @@ + + * @package WoltLabSuite\Core\Data\Reaction\Object + * @since 3.2 + */ +interface IReactionObject { + /** + * Sends a notification for this reaction. + * + * @param Like $like + */ + public function sendNotification(Like $like); +} -- 2.20.1