summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-10-14 22:59:16 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-10-14 22:59:16 +0200
commit12c13b86d878986e180c4383541a11dbfb90f8b8 (patch)
tree1d536eeb1a21fb8098f6cd325b4bfc677883f3a2 /apps/files_trashbin/appinfo
parent543190f8b3228b994ba897c9a43fdc3f61adf663 (diff)
downloadnextcloud-server-12c13b86d878986e180c4383541a11dbfb90f8b8.tar.gz
nextcloud-server-12c13b86d878986e180c4383541a11dbfb90f8b8.zip
fixup! Do not create Application instances directly
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/appinfo')
-rw-r--r--apps/files_trashbin/appinfo/routes.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/files_trashbin/appinfo/routes.php b/apps/files_trashbin/appinfo/routes.php
index 8f5530d644c..9f85e27bedc 100644
--- a/apps/files_trashbin/appinfo/routes.php
+++ b/apps/files_trashbin/appinfo/routes.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
* @copyright Copyright (c) 2016, Roeland Jago Douma <roeland@famdouma.nl>
@@ -22,11 +23,7 @@
*
*/
-namespace OCA\Files_Trashbin\AppInfo;
-
-/** @var Application $application */
-$application = \OC::$server->query(Application::class);
-$application->registerRoutes($this, [
+return [
'routes' => [
[
'name' => 'Preview#getPreview',
@@ -34,4 +31,4 @@ $application->registerRoutes($this, [
'verb' => 'GET',
],
],
-]);
+];