diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-10-28 22:30:24 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-10-28 22:30:24 +0100 |
commit | 8218ae4274fa47a0a7dd22c67aafff39db87650b (patch) | |
tree | 966136791fc7b1416ca12f1a25ce5fe59dd17ed8 /lib/public/Util.php | |
parent | ef382f541c42f719b8dd30a4e0e248ef1bc39c84 (diff) | |
download | nextcloud-server-8218ae4274fa47a0a7dd22c67aafff39db87650b.tar.gz nextcloud-server-8218ae4274fa47a0a7dd22c67aafff39db87650b.zip |
Deprecate OCP\Util::connectHook and emitHook
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r-- | lib/public/Util.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php index 9610ab909be..243bc4707d4 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -54,6 +54,7 @@ namespace OCP; /** * This class provides different helper functions to make the life of a developer easier + * * @since 4.0.0 */ class Util { @@ -335,6 +336,7 @@ class Util { * * 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 @@ class Util { * * 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); |