diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-10-11 09:33:09 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-10-11 09:33:09 +0300 |
commit | 543190f8b3228b994ba897c9a43fdc3f61adf663 (patch) | |
tree | 650022215976952462cef64f59c25e86fa20a006 /apps/dav/appinfo | |
parent | f6a79338d4ea66f9c341d004951b606b5310b478 (diff) |
Do not create Application instances directly
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r-- | apps/dav/appinfo/app.php | 3 |
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) { |