summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/appinfo/app.php')
-rw-r--r--apps/dav/appinfo/app.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/appinfo/app.php b/apps/dav/appinfo/app.php
index dd9e0e9c096..a1a2377fb3b 100644
--- a/apps/dav/appinfo/app.php
+++ b/apps/dav/appinfo/app.php
@@ -29,7 +29,8 @@ use Symfony\Component\EventDispatcher\GenericEvent;
\OC_App::loadApps(['dav']);
-$app = new Application();
+/** @var Application $app */
+$app = \OC::$server->query(Application::class);
$app->registerHooks();
\OC::$server->registerService('CardDAVSyncService', function() use ($app) {