catch rendering exceptions
[grauphel.git] / appinfo / application.php
index cc39ceb..7761eb5 100644 (file)
@@ -56,6 +56,28 @@ class Application extends App
                 );
             }
         );
+        $container->registerService(
+            'NotesController',
+            function($c) {
+                return new \OCA\Grauphel\Controller\NotesController(
+                    $c->query('AppName'),
+                    $c->query('Request'),
+                    $c->query('Session')->getUser()
+                );
+            }
+        );
+        $container->registerService(
+            'TokenController',
+            function($c) {
+                Dependencies::get()->urlGen
+                    = $c->query('ServerContainer')->getURLGenerator();
+                return new \OCA\Grauphel\Controller\TokenController(
+                    $c->query('AppName'),
+                    $c->query('Request'),
+                    $c->query('Session')->getUser()
+                );
+            }
+        );
     }
 }
 ?>