summaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-08-07 13:51:36 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-08-07 13:51:36 +0200
commit49c27d13e551754368822ca39efab503a86108bf (patch)
treeafd3a8991aaa47ecb4deb690c51116132e70ce55 /hooks
parente9c10e419604ec07a2305540d2800c93ee413067 (diff)
more ::class migrations and fix user deletion hook
Diffstat (limited to 'hooks')
-rw-r--r--hooks/user.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/hooks/user.php b/hooks/user.php
index 8ad12e880..e31c0756a 100644
--- a/hooks/user.php
+++ b/hooks/user.php
@@ -13,7 +13,7 @@
namespace OCA\News\Hooks;
-use \OCA\News\AppInfo\Application;
+use OCA\News\AppInfo\Application;
class User {
@@ -26,10 +26,10 @@ class User {
$container = $app->getContainer();
// order is important!
- $container->query('ItemService')->deleteUser($userId);
- $container->query('FeedService')->deleteUser($userId);
- $container->query('FolderService')->deleteUser($userId);
+ $container->query(\OCA\News\Service\ItemService::class)->deleteUser($userId);
+ $container->query(\OCA\News\Service\FeedService::class)->deleteUser($userId);
+ $container->query(\OCA\News\Service\FolderService::class)->deleteUser($userId);
}
-} \ No newline at end of file
+}