From 723f017b125fe599219f98f5e15622c329acec1f Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 11 Dec 2019 10:04:36 +0100 Subject: Deprecate hooks, emitter and Symfony dispatcher mechanisms Signed-off-by: Christoph Wurst --- lib/private/legacy/hook.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/private/legacy') diff --git a/lib/private/legacy/hook.php b/lib/private/legacy/hook.php index 0d413a11de7..78060d76e0d 100644 --- a/lib/private/legacy/hook.php +++ b/lib/private/legacy/hook.php @@ -28,7 +28,11 @@ * along with this program. If not, see * */ -class OC_Hook{ + +/** + * @deprecated 18.0.0 use events and the \OCP\EventDispatcher\IEventDispatcher service + */ +class OC_Hook { public static $thrownExceptions = []; static private $registered = array(); -- cgit v1.2.3