diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-10-11 08:33:09 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-10-11 08:33:09 +0200 |
commit | 543190f8b3228b994ba897c9a43fdc3f61adf663 (patch) | |
tree | 650022215976952462cef64f59c25e86fa20a006 /core/routes.php | |
parent | f6a79338d4ea66f9c341d004951b606b5310b478 (diff) | |
download | nextcloud-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 'core/routes.php')
-rw-r--r-- | core/routes.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/routes.php b/core/routes.php index 829fa8576c8..0e6efae59b5 100644 --- a/core/routes.php +++ b/core/routes.php @@ -34,7 +34,8 @@ use OC\Core\Application; -$application = new Application(); +/** @var Application $application */ +$application = \OC::$server->query(Application::class); $application->registerRoutes($this, [ 'routes' => [ ['name' => 'lost#email', 'url' => '/lostpassword/email', 'verb' => 'POST'], |