Skip to content
Snippets Groups Projects
Unverified Commit 1d8b954a authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #23768 from nextcloud/techdebt/noid/deprecate-ocp-util-emitHook-and-connectHook

Deprecate OCP\Util::connectHook and emitHook
parents 97bd0ffa 8218ae42
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment