summaryrefslogtreecommitdiffstats
path: root/apps/encryption
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/encryption
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/encryption')
-rw-r--r--apps/encryption/appinfo/routes.php73
1 files changed, 34 insertions, 39 deletions
diff --git a/apps/encryption/appinfo/routes.php b/apps/encryption/appinfo/routes.php
index 4c01dd57ad3..f7eb7ff5775 100644
--- a/apps/encryption/appinfo/routes.php
+++ b/apps/encryption/appinfo/routes.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -21,43 +22,37 @@
*
*/
-
-namespace OCA\Encryption\AppInfo;
-
-/** @var Application $app */
-$app = \OC::$server->query(Application::class);
-$app->registerRoutes($this, array('routes' => array(
-
- [
- 'name' => 'Recovery#adminRecovery',
- 'url' => '/ajax/adminRecovery',
- 'verb' => 'POST'
- ],
- [
- 'name' => 'Settings#updatePrivateKeyPassword',
- 'url' => '/ajax/updatePrivateKeyPassword',
- 'verb' => 'POST'
- ],
- [
- 'name' => 'Settings#setEncryptHomeStorage',
- 'url' => '/ajax/setEncryptHomeStorage',
- 'verb' => 'POST'
- ],
- [
- 'name' => 'Recovery#changeRecoveryPassword',
- 'url' => '/ajax/changeRecoveryPassword',
- 'verb' => 'POST'
- ],
- [
- 'name' => 'Recovery#userSetRecovery',
- 'url' => '/ajax/userSetRecovery',
- 'verb' => 'POST'
- ],
- [
- 'name' => 'Status#getStatus',
- 'url' => '/ajax/getStatus',
- 'verb' => 'GET'
+return [
+ 'routes' => [
+ [
+ 'name' => 'Recovery#adminRecovery',
+ 'url' => '/ajax/adminRecovery',
+ 'verb' => 'POST'
+ ],
+ [
+ 'name' => 'Settings#updatePrivateKeyPassword',
+ 'url' => '/ajax/updatePrivateKeyPassword',
+ 'verb' => 'POST'
+ ],
+ [
+ 'name' => 'Settings#setEncryptHomeStorage',
+ 'url' => '/ajax/setEncryptHomeStorage',
+ 'verb' => 'POST'
+ ],
+ [
+ 'name' => 'Recovery#changeRecoveryPassword',
+ 'url' => '/ajax/changeRecoveryPassword',
+ 'verb' => 'POST'
+ ],
+ [
+ 'name' => 'Recovery#userSetRecovery',
+ 'url' => '/ajax/userSetRecovery',
+ 'verb' => 'POST'
+ ],
+ [
+ 'name' => 'Status#getStatus',
+ 'url' => '/ajax/getStatus',
+ 'verb' => 'GET'
+ ],
]
-
-
-)));
+];