aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/appinfo
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-11 08:33:09 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-11 08:33:09 +0200
commit543190f8b3228b994ba897c9a43fdc3f61adf663 (patch)
tree650022215976952462cef64f59c25e86fa20a006 /apps/files_trashbin/appinfo
parentf6a79338d4ea66f9c341d004951b606b5310b478 (diff)
downloadnextcloud-server-543190f8b3228b994ba897c9a43fdc3f61adf663.tar.gz
nextcloud-server-543190f8b3228b994ba897c9a43fdc3f61adf663.zip
Do not create Application instances directly
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_trashbin/appinfo')
-rw-r--r--apps/files_trashbin/appinfo/routes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_trashbin/appinfo/routes.php b/apps/files_trashbin/appinfo/routes.php
index 20d52adf3f0..8f5530d644c 100644
--- a/apps/files_trashbin/appinfo/routes.php
+++ b/apps/files_trashbin/appinfo/routes.php
@@ -24,7 +24,8 @@
namespace OCA\Files_Trashbin\AppInfo;
-$application = new Application();
+/** @var Application $application */
+$application = \OC::$server->query(Application::class);
$application->registerRoutes($this, [
'routes' => [
[