summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/appinfo/application.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/updatenotification/appinfo/application.php')
-rw-r--r--apps/updatenotification/appinfo/application.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/updatenotification/appinfo/application.php b/apps/updatenotification/appinfo/application.php
index ae3317c1b54..24c0a11af69 100644
--- a/apps/updatenotification/appinfo/application.php
+++ b/apps/updatenotification/appinfo/application.php
@@ -22,7 +22,9 @@
namespace OCA\UpdateNotification\AppInfo;
use OC\AppFramework\Utility\TimeFactory;
+use OC\Updater;
use OCA\UpdateNotification\Controller\AdminController;
+use OCA\UpdateNotification\UpdateChecker;
use OCP\AppFramework\App;
use OCP\AppFramework\IAppContainer;
@@ -32,13 +34,21 @@ class Application extends App {
$container = $this->getContainer();
$container->registerService('AdminController', function(IAppContainer $c) {
+ $updater = new \OC\Updater(
+ \OC::$server->getHTTPHelper(),
+ \OC::$server->getConfig(),
+ \OC::$server->getIntegrityCodeChecker()
+ );
return new AdminController(
$c->query('AppName'),
$c->query('Request'),
$c->getServer()->getJobList(),
$c->getServer()->getSecureRandom(),
$c->getServer()->getConfig(),
- new TimeFactory()
+ new TimeFactory(),
+ $c->getServer()->getL10N($c->query('AppName')),
+ new UpdateChecker($updater),
+ $c->getServer()->getDateTimeFormatter()
);
});
}