From 8218ae4274fa47a0a7dd22c67aafff39db87650b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 28 Oct 2020 22:30:24 +0100 Subject: [PATCH] Deprecate OCP\Util::connectHook and emitHook Signed-off-by: Morris Jobke --- lib/public/Util.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/public/Util.php b/lib/public/Util.php index 9610ab909be1a..243bc4707d46e 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -54,6 +54,7 @@ /** * This class provides different helper functions to make the life of a developer easier + * * @since 4.0.0 */ class Util { @@ -335,6 +336,7 @@ public static function computerFileSize($str) { * * TODO: write example * @since 4.0.0 + * @deprecated 21.0.0 use \OCP\EventDispatcher\IEventDispatcher::addListener */ public static function connectHook($signalClass, $signalName, $slotClass, $slotName) { return \OC_Hook::connect($signalClass, $signalName, $slotClass, $slotName); @@ -349,6 +351,7 @@ public static function connectHook($signalClass, $signalName, $slotClass, $slotN * * TODO: write example * @since 4.0.0 + * @deprecated 21.0.0 use \OCP\EventDispatcher\IEventDispatcher::dispatchTypedEvent */ public static function emitHook($signalclass, $signalname, $params = []) { return \OC_Hook::emit($signalclass, $signalname, $params);