Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-11 09:33:09 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-11 09:33:09 +0300
commit543190f8b3228b994ba897c9a43fdc3f61adf663 (patch)
tree650022215976952462cef64f59c25e86fa20a006 /apps/settings/appinfo
parentf6a79338d4ea66f9c341d004951b606b5310b478 (diff)
Do not create Application instances directly
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/settings/appinfo')
-rw-r--r--apps/settings/appinfo/routes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings/appinfo/routes.php b/apps/settings/appinfo/routes.php
index b55bea0de68..6e7ee45619b 100644
--- a/apps/settings/appinfo/routes.php
+++ b/apps/settings/appinfo/routes.php
@@ -38,7 +38,8 @@ namespace OCA\Settings;
use OCA\Settings\AppInfo\Application;
-$application = new Application();
+/** @var Application $application */
+$application = \OC::$server->query(Application::class);
$this->useCollection('root');
$application->registerRoutes($this, [
'resources' => [