From e158cc1d3b1fb33de5aaa1aaac0c7828016fb7b9 Mon Sep 17 00:00:00 2001 From: Daniel Opitz Date: Tue, 16 Oct 2018 22:37:48 +0200 Subject: use magic class constant instead of classname strings --- appinfo/app.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'appinfo/app.php') diff --git a/appinfo/app.php b/appinfo/app.php index 9ce7f366f..4abce5742 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -13,6 +13,8 @@ namespace OCA\News\AppInfo; +use OCA\News\Hooks\User; + require_once __DIR__ . '/../vendor/autoload.php'; -\OCP\Util::connectHook('OC_User', 'pre_deleteUser', 'OCA\News\Hooks\User', 'deleteUser'); \ No newline at end of file +\OCP\Util::connectHook('OC_User', 'pre_deleteUser', User::class, 'deleteUser'); \ No newline at end of file -- cgit v1.2.3