update changelog; prepare 0.4.0
[grauphel.git] / appinfo / application.php
index 7a1691d..7761eb5 100644 (file)
@@ -28,27 +28,50 @@ class Application extends App
                     = $c->query('ServerContainer')->getURLGenerator();
                 return new \OCA\Grauphel\Controller\ApiController(
                     $c->query('AppName'),
                     = $c->query('ServerContainer')->getURLGenerator();
                 return new \OCA\Grauphel\Controller\ApiController(
                     $c->query('AppName'),
-                    $c->query('Request')
+                    $c->query('Request'),
+                    $c->query('Session')->getUser()
                 );
             }
         );
         $container->registerService(
                 );
             }
         );
         $container->registerService(
-            'AccessController',
+            'OauthController',
             function($c) {
                 Dependencies::get()->urlGen
                     = $c->query('ServerContainer')->getURLGenerator();
             function($c) {
                 Dependencies::get()->urlGen
                     = $c->query('ServerContainer')->getURLGenerator();
-                 return new \OCA\Grauphel\Controller\AccessController(
+                return new \OCA\Grauphel\Controller\OauthController(
                     $c->query('AppName'),
                     $c->query('AppName'),
-                    $c->query('Request')
+                    $c->query('Request'),
+                    $c->query('Session')->getUser()
                 );
             }
         );
         $container->registerService(
                 );
             }
         );
         $container->registerService(
-            'OauthController',
+            'GuiController',
+            function($c) {
+                return new \OCA\Grauphel\Controller\GuiController(
+                    $c->query('AppName'),
+                    $c->query('Request'),
+                    $c->query('Session')->getUser(),
+                    $c->query('ServerContainer')->getURLGenerator()
+                );
+            }
+        );
+        $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();
             function($c) {
                 Dependencies::get()->urlGen
                     = $c->query('ServerContainer')->getURLGenerator();
-                return new \OCA\Grauphel\Controller\OauthController(
+                return new \OCA\Grauphel\Controller\TokenController(
                     $c->query('AppName'),
                     $c->query('Request'),
                     $c->query('Session')->getUser()
                     $c->query('AppName'),
                     $c->query('Request'),
                     $c->query('Session')->getUser()