diff options
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/user.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hooks/user.php b/hooks/user.php index e7d18c129..148b62164 100644 --- a/hooks/user.php +++ b/hooks/user.php @@ -25,7 +25,7 @@ namespace OCA\News\Hooks; -use \OCA\News\DependencyInjection\DIContainer; +use \OCA\News\App\News; class User { @@ -34,7 +34,8 @@ class User { public static function deleteUser($params) { $userId = $params['uid']; - $container = new DIContainer(); + $app = new News(); + $container = $app->getContainer(); // order is important! $container['ItemBusinessLayer']->deleteUser($userId); |