aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Route
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-11 08:21:24 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-11 08:21:24 +0200
commitf6a79338d4ea66f9c341d004951b606b5310b478 (patch)
treea22bb539d6d5fcd18453167dfcaeaded99b336df /lib/private/Route
parenta373fd584846101ed1b7e12ce8a10cb564446975 (diff)
downloadnextcloud-server-f6a79338d4ea66f9c341d004951b606b5310b478.tar.gz
nextcloud-server-f6a79338d4ea66f9c341d004951b606b5310b478.zip
Make sure we create an app's Application class just once
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Route')
-rw-r--r--lib/private/Route/Router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php
index 3d91a33cd8a..4c83f251012 100644
--- a/lib/private/Route/Router.php
+++ b/lib/private/Route/Router.php
@@ -371,7 +371,7 @@ class Router implements IRouter {
$applicationClassName = $appNameSpace . '\\AppInfo\\Application';
if (class_exists($applicationClassName)) {
- $application = new $applicationClassName();
+ $application = \OC::$server->query($applicationClassName);
} else {
$application = new App($appName);
}