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);