From ef2fb51065aabb90e8e4234d84a78f4e047f7d1c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 4 Nov 2019 19:25:00 +0100 Subject: remove missed manual Application instance constructions Signed-off-by: Robin Appelman --- apps/accessibility/appinfo/app.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/accessibility/appinfo') diff --git a/apps/accessibility/appinfo/app.php b/apps/accessibility/appinfo/app.php index 96621a16829..4421c732bd8 100644 --- a/apps/accessibility/appinfo/app.php +++ b/apps/accessibility/appinfo/app.php @@ -22,10 +22,12 @@ declare (strict_types = 1); * */ -$app = new \OCA\Accessibility\AppInfo\Application(); +use OCA\Accessibility\AppInfo\Application; + +$app = \OC::$server->query(Application::class); // Separate from the constructor since the route are not initialized before that // 1. create the app // 2. generate css route and inject $app->injectCss(); -$app->injectJavascript(); \ No newline at end of file +$app->injectJavascript(); -- cgit v1.2.3