Skip to content

Commit 1d8b954

Browse files
authored
Merge pull request #23768 from nextcloud/techdebt/noid/deprecate-ocp-util-emitHook-and-connectHook
Deprecate OCP\Util::connectHook and emitHook
2 parents 97bd0ff + 8218ae4 commit 1d8b954

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/public/Util.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
/**
5656
* This class provides different helper functions to make the life of a developer easier
57+
*
5758
* @since 4.0.0
5859
*/
5960
class Util {
@@ -335,6 +336,7 @@ public static function computerFileSize($str) {
335336
*
336337
* TODO: write example
337338
* @since 4.0.0
339+
* @deprecated 21.0.0 use \OCP\EventDispatcher\IEventDispatcher::addListener
338340
*/
339341
public static function connectHook($signalClass, $signalName, $slotClass, $slotName) {
340342
return \OC_Hook::connect($signalClass, $signalName, $slotClass, $slotName);
@@ -349,6 +351,7 @@ public static function connectHook($signalClass, $signalName, $slotClass, $slotN
349351
*
350352
* TODO: write example
351353
* @since 4.0.0
354+
* @deprecated 21.0.0 use \OCP\EventDispatcher\IEventDispatcher::dispatchTypedEvent
352355
*/
353356
public static function emitHook($signalclass, $signalname, $params = []) {
354357
return \OC_Hook::emit($signalclass, $signalname, $params);

0 commit comments

Comments
 (0)