fixup! Do not create Application instances directly
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
543190f8b3
commit
12c13b86d8
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
/**
|
/**
|
||||||
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
||||||
*
|
*
|
||||||
|
@ -21,13 +22,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
namespace OCA\Encryption\AppInfo;
|
'routes' => [
|
||||||
|
|
||||||
/** @var Application $app */
|
|
||||||
$app = \OC::$server->query(Application::class);
|
|
||||||
$app->registerRoutes($this, array('routes' => array(
|
|
||||||
|
|
||||||
[
|
[
|
||||||
'name' => 'Recovery#adminRecovery',
|
'name' => 'Recovery#adminRecovery',
|
||||||
'url' => '/ajax/adminRecovery',
|
'url' => '/ajax/adminRecovery',
|
||||||
|
@ -57,7 +53,6 @@ $app->registerRoutes($this, array('routes' => array(
|
||||||
'name' => 'Status#getStatus',
|
'name' => 'Status#getStatus',
|
||||||
'url' => '/ajax/getStatus',
|
'url' => '/ajax/getStatus',
|
||||||
'verb' => 'GET'
|
'verb' => 'GET'
|
||||||
|
],
|
||||||
]
|
]
|
||||||
|
];
|
||||||
|
|
||||||
)));
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
/**
|
/**
|
||||||
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
||||||
* @copyright Copyright (c) 2016, Roeland Jago Douma <roeland@famdouma.nl>
|
* @copyright Copyright (c) 2016, Roeland Jago Douma <roeland@famdouma.nl>
|
||||||
|
@ -22,11 +23,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OCA\Files_Trashbin\AppInfo;
|
return [
|
||||||
|
|
||||||
/** @var Application $application */
|
|
||||||
$application = \OC::$server->query(Application::class);
|
|
||||||
$application->registerRoutes($this, [
|
|
||||||
'routes' => [
|
'routes' => [
|
||||||
[
|
[
|
||||||
'name' => 'Preview#getPreview',
|
'name' => 'Preview#getPreview',
|
||||||
|
@ -34,4 +31,4 @@ $application->registerRoutes($this, [
|
||||||
'verb' => 'GET',
|
'verb' => 'GET',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
]);
|
];
|
||||||
|
|
Loading…
Reference in New Issue