Skip to content

Commit

Permalink
Merge pull request #23768 from nextcloud/techdebt/noid/deprecate-ocp-…
Browse files Browse the repository at this point in the history
…util-emitHook-and-connectHook

Deprecate OCP\Util::connectHook and emitHook
  • Loading branch information
MorrisJobke authored Oct 29, 2020
2 parents 97bd0ff + 8218ae4 commit 1d8b954
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/public/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

/**
* This class provides different helper functions to make the life of a developer easier
*
* @since 4.0.0
*/
class Util {
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 1d8b954

Please sign in to comment.