summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorDaniel Opitz <git@copynpaste.de>2018-10-16 22:37:48 +0200
committerSean Molenaar <SMillerDev@users.noreply.github.com>2018-12-04 17:10:46 +0100
commite158cc1d3b1fb33de5aaa1aaac0c7828016fb7b9 (patch)
tree4d3b4da643a428f259ca9fe1c63d97f8cecfb5fc /appinfo
parent5c7fdb08534018ba86ec4a38f45b63cbbf67a72f (diff)
use magic class constant instead of classname strings
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php4
1 files changed, 3 insertions, 1 deletions
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