Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/app.php')
-rw-r--r--appinfo/app.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
new file mode 100644
index 00000000..6e415c3b
--- /dev/null
+++ b/appinfo/app.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * Nextcloud - passman
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Sander Brand <brantje@gmail.com>
+ * @copyright Sander Brand 2016
+ */
+
+namespace OCA\Passman\AppInfo;
+
+
+use OCP\Util;
+use OCP\BackgroundJob;
+use OCA\Passman\Notifier;
+use OCA\Passman\Activity;
+require_once __DIR__ . '/autoload.php';
+
+$app = new \OCA\Passman\AppInfo\Application();
+$app->registerNavigationEntry();
+$app->registerPersonalPage();
+
+
+$l = \OC::$server->getL10N('passman');
+$manager = \OC::$server->getNotificationManager();
+$manager->registerNotifier(function() {
+ return new Notifier(
+ \OC::$server->getL10NFactory()
+ );
+}, function() use ($l) {
+ return [
+ 'id' => 'passman',
+ 'name' => $l->t('Passwords'),
+ ];
+});
+
+$manager = \OC::$server->getActivityManager();
+$manager->registerExtension(function() {
+ return new Activity(
+ \OC::$server->getL10NFactory()
+ );
+});
+
+/**
+ * Loading translations
+ *
+ * The string has to match the app's folder name
+ */
+Util::addTranslations('passman');