From 1d7387a458d893664e2537ec811bc053d95600b7 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 20 Aug 2014 06:27:58 +0200 Subject: sync could work if php would not crash --- appinfo/application.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'appinfo/application.php') diff --git a/appinfo/application.php b/appinfo/application.php index 7a1691d..69d1572 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -28,18 +28,8 @@ class Application extends App = $c->query('ServerContainer')->getURLGenerator(); return new \OCA\Grauphel\Controller\ApiController( $c->query('AppName'), - $c->query('Request') - ); - } - ); - $container->registerService( - 'AccessController', - function($c) { - Dependencies::get()->urlGen - = $c->query('ServerContainer')->getURLGenerator(); - return new \OCA\Grauphel\Controller\AccessController( - $c->query('AppName'), - $c->query('Request') + $c->query('Request'), + $c->query('Session')->getUser() ); } ); -- cgit v1.2.3