diff --git a/appinfo/app.php b/appinfo/app.php index 568e8eddd..a49501618 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -17,7 +17,7 @@ use Symfony\Component\EventDispatcher\GenericEvent; use OCA\Maps\Hooks\FileHooks; -$app = new Application(); +$app = \OC::$server->query(Application::class); $container = $app->getContainer(); $eventDispatcher = \OC::$server->getEventDispatcher();