diff options
Diffstat (limited to 'hooks/user.php')
-rw-r--r-- | hooks/user.php | 10 |
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 +} |