aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-11-04 19:25:00 +0100
committerRobin Appelman <robin@icewind.nl>2019-11-04 19:51:37 +0100
commitef2fb51065aabb90e8e4234d84a78f4e047f7d1c (patch)
treea4a0152950139fb23255f68d7aaf6afd8a3b730f /apps/theming
parent5ca27085fcb01db920326ea9ad892cc9a49253ab (diff)
downloadnextcloud-server-ef2fb51065aabb90e8e4234d84a78f4e047f7d1c.tar.gz
nextcloud-server-ef2fb51065aabb90e8e4234d84a78f4e047f7d1c.zip
remove missed manual Application instance constructions
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/appinfo/app.php4
-rw-r--r--apps/theming/lib/AppInfo/Application.php28
2 files changed, 31 insertions, 1 deletions
diff --git a/apps/theming/appinfo/app.php b/apps/theming/appinfo/app.php
index dc8e00f4ed5..ba60d44870b 100644
--- a/apps/theming/appinfo/app.php
+++ b/apps/theming/appinfo/app.php
@@ -25,7 +25,9 @@
*
*/
-$app = new \OCP\AppFramework\App('theming');
+use OCA\Theming\AppInfo\Application;
+
+$app = \OC::$server->query(Application::class);
$app->getContainer()->registerCapability(\OCA\Theming\Capabilities::class);
$linkToCSS = \OC::$server->getURLGenerator()->linkToRoute(
diff --git a/apps/theming/lib/AppInfo/Application.php b/apps/theming/lib/AppInfo/Application.php
new file mode 100644
index 00000000000..519e49077f8
--- /dev/null
+++ b/apps/theming/lib/AppInfo/Application.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * @copyright Copyright (c) 2019 Robin Appelman <robin@icewind.nl>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OCA\Theming\AppInfo;
+
+class Application extends \OCP\AppFramework\App {
+ public function __construct() {
+ parent::__construct('theming', []);
+ }
+} \ No newline at end of file