summaryrefslogtreecommitdiffstats
path: root/appinfo/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/app.php')
-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