summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php4
-rw-r--r--appinfo/application.php6
2 files changed, 7 insertions, 3 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index e50525a5c..cacd0637d 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -13,6 +13,8 @@
namespace OCA\News\AppInfo;
+use \OCA\News\Config\DependencyException;
+
$container = new Application();
$config = $container->getAppConfig();
@@ -24,7 +26,7 @@ $config->registerHooks();
// check for correct app dependencies
try {
$config->testDependencies();
-} catch(\OCA\News\Config\DependencyException $e) {
+} catch(DependencyException $e) {
$logger = $container->getLogger();
$params = $container->getLoggerParameters();
$logger->emergency($e->getMessage(), $params);
diff --git a/appinfo/application.php b/appinfo/application.php
index d2e846ded..ddc3cb903 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -15,6 +15,8 @@ namespace OCA\News\AppInfo;
use \OC\Files\View;
use \OCP\AppFramework\App;
+use \OCP\Util;
+use \OCP\User;
use \OCA\News\Config\AppConfig;
@@ -260,7 +262,7 @@ class Application extends App {
$c->query('L10N'),
$c->query('ServerContainer')->getURLGenerator(),
phpversion(),
- implode('.', \OCP\Util::getVersion()),
+ implode('.', Util::getVersion()),
$apps,
$extensions,
$c->query('DatabaseType')
@@ -275,7 +277,7 @@ class Application extends App {
});
$container->registerService('UserId', function() {
- return \OCP\User::getUser();
+ return User::getUser();
});
$container->registerService('Logger', function($c) {
>280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335