summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-03-28 19:50:50 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-03-28 19:50:50 +0200
commit59ca64902e9be76882db16c07e65dc342a336201 (patch)
tree7bf69bd667761a6afacd9f17bdc37d6e6818b5b2 /appinfo
parent150e2ee20a51e753bee752758a51da98883feecf (diff)
add console based update api which does not require authentication
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/register_command.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/appinfo/register_command.php b/appinfo/register_command.php
new file mode 100644
index 000000000..ef5dbdef1
--- /dev/null
+++ b/appinfo/register_command.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * ownCloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright Bernhard Posselt 2016
+ */
+
+namespace OCA\News\AppInfo;
+
+use OCA\News\Command\Updater\UpdateFeed;
+use OCA\News\Command\Updater\AllFeeds;
+use OCA\News\Command\Updater\BeforeUpdate;
+use OCA\News\Command\Updater\AfterUpdate;
+
+$app = new Application();
+$container = $app->getContainer();
+$application->add($container->query(AllFeeds::class));
+$application->add($container->query(UpdateFeed::class));
+$application->add($container->query(BeforeUpdate::class));
+$application->add($container->query(AfterUpdate::class));