summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/AppInfo
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-21 14:36:40 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-07-21 20:44:05 +0200
commit7870ca06637453f4e72dbd67edbfb3603d813196 (patch)
tree9f61927799c9baf39e336fa4299d4ac0fe4e34a1 /apps/updatenotification/lib/AppInfo
parent91e7f12088cb87ffef5660429ece404364167978 (diff)
downloadnextcloud-server-7870ca06637453f4e72dbd67edbfb3603d813196.tar.gz
nextcloud-server-7870ca06637453f4e72dbd67edbfb3603d813196.zip
Use the proper IAppContainer and IServerContainer type hints to know which code runs with which container
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/updatenotification/lib/AppInfo')
-rw-r--r--apps/updatenotification/lib/AppInfo/Application.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/updatenotification/lib/AppInfo/Application.php b/apps/updatenotification/lib/AppInfo/Application.php
index c369c957442..48f89de3c37 100644
--- a/apps/updatenotification/lib/AppInfo/Application.php
+++ b/apps/updatenotification/lib/AppInfo/Application.php
@@ -35,6 +35,7 @@ use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
+use OCP\AppFramework\IAppContainer;
use OCP\AppFramework\QueryException;
use OCP\IConfig;
use OCP\IGroupManager;
@@ -43,7 +44,6 @@ use OCP\IUser;
use OCP\IUserSession;
use OCP\Notification\IManager as INotificationManager;
use OCP\Util;
-use Psr\Container\ContainerInterface;
class Application extends App implements IBootstrap {
public function __construct() {
@@ -59,7 +59,7 @@ class Application extends App implements IBootstrap {
IUserSession $userSession,
IAppManager $appManager,
IGroupManager $groupManager,
- ContainerInterface $container,
+ IAppContainer $appContainer,
ILogger $logger) {
if ($config->getSystemValue('updatechecker', true) !== true) {
// Updater check is disabled
@@ -78,7 +78,7 @@ class Application extends App implements IBootstrap {
if (!$appManager->isEnabledForUser('notifications') &&
$groupManager->isAdmin($user->getUID())) {
try {
- $updateChecker = $container->get(UpdateChecker::class);
+ $updateChecker = $appContainer->get(UpdateChecker::class);
} catch (QueryException $e) {
$logger->logException($e);
return;