Link to maintainership/funding post
[grauphel.git] / appinfo / app.php
index 3e319dfdc833884baa1945109a8e479f9703423b..1fb5551b75e37cf535338fe24179c1a6678f6827 100755 (executable)
@@ -1,13 +1,17 @@
 <?php
 <?php
-require_once (__DIR__ . '/../src/grauphel/Autoloader.php');
-grauphel\Autoloader::register();
+\OC::$server->getNavigationManager()->add(
+    array( 
+        'id' => 'grauphel',
+        'order' => 2342,
+        'href' => \OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.index'),
+        'icon' => \OC::$server->getURLGenerator()->imagePath('grauphel', 'app.svg'),
+        'name' => 'Tomboy notes'
+    )
+);
 
 
-//OCP\App::registerAdmin( 'apptemplate', 'settings' );
+\OC::$server->getSearch()->registerProvider(
+    'OCA\Grauphel\Search\Provider', array('apps' => array('grauphel'))
+);
 
 
-OCP\App::addNavigationEntry( array( 
-       'id' => 'grauphel',
-       'order' => 2342,
-       'href' => OCP\Util::linkTo( 'grauphel', 'index.php' ),
-       'icon' => OCP\Util::imagePath( 'grauphel', 'notes.png' ),
-       'name' => 'Tomboy notes'
-));
+\OCP\Util::addscript('grauphel', 'loader');
+?>