summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 11:11:20 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 11:11:20 +0200
commita52df5cad2f9853514988b1bb43b07e812bb9316 (patch)
tree89dd47c8be24de558bbce3b37cb6d8a59002cac9 /appinfo
parent29000e2d6f49ed9b08b15a9f474dfb5b4145d800 (diff)
move config class into config folder
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php5
-rw-r--r--appinfo/application.php3
-rw-r--r--appinfo/install.php22
3 files changed, 25 insertions, 5 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 077d0b7c4..a6de66ce2 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -28,7 +28,4 @@ $container = new Application();
$config = $container->getAppConfig();
$config->registerNavigation();
$config->registerBackgroundJobs();
-$config->registerHooks();
-
-// check for correct app dependencies and fail if possible
-$config->testDependencies();
+$config->registerHooks(); \ No newline at end of file
diff --git a/appinfo/application.php b/appinfo/application.php
index 5d27fe5dd..cdbaa82d6 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -19,6 +19,7 @@ use \OCP\Util;
use \OCP\User;
use \OCA\News\Config\AppConfig;
+use \OCA\News\Config\Config;
use \OCA\News\Controller\PageController;
use \OCA\News\Controller\FolderController;
@@ -39,7 +40,6 @@ use \OCA\News\Db\FeedMapper;
use \OCA\News\Db\StatusFlag;
use \OCA\News\Db\MapperFactory;
-use \OCA\News\Utility\Config;
use \OCA\News\Utility\OPMLExporter;
use \OCA\News\Utility\Updater;
use \OCA\News\Utility\SimplePieAPIFactory;
@@ -470,5 +470,6 @@ class Application extends App {
}
+ public function dispatchPart($controller, $)
}
diff --git a/appinfo/install.php b/appinfo/install.php
new file mode 100644
index 000000000..572f21fff
--- /dev/null
+++ b/appinfo/install.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * ownCloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Alessandro Cosentino <cosenal@gmail.com>
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright Alessandro Cosentino 2012
+ * @copyright Bernhard Posselt 2012, 2014
+ */
+
+namespace OCA\News\AppInfo;
+
+use \OCA\News\Config\DependencyException;
+
+
+// check for correct app dependencies and fail if possible
+$container = new Application();
+$config = $container->getAppConfig();
+$config->testDependencies(); \ No newline at end of file