From: Joshua Rüsweg Date: Wed, 15 May 2019 15:00:44 +0000 (+0200) Subject: Backport IReactionObject to version 3.0 X-Git-Tag: 5.2.0_Alpha_1~19^2~2^2~1^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=13d52f4b15376c6d0048f00ed509a4d6ec9223f6;p=GitHub%2FWoltLab%2FWCF.git 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 --- 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); +}