diff --git a/lib/private/appframework/http/dispatcher.php b/lib/private/appframework/http/dispatcher.php
index 2a9ed1214886d09a03fd89f371b88864b7da029d..51283fd64e7cb73f2f91a522a85d5995e608df8f 100644
--- a/lib/private/appframework/http/dispatcher.php
+++ b/lib/private/appframework/http/dispatcher.php
@@ -25,7 +25,7 @@
 namespace OC\AppFramework\Http;
 
 use \OC\AppFramework\Middleware\MiddlewareDispatcher;
-use OCP\AppFramework\Controller\Controller;
+use OCP\AppFramework\Controller;
 
 
 /**
diff --git a/lib/private/appframework/middleware/middlewaredispatcher.php b/lib/private/appframework/middleware/middlewaredispatcher.php
index c46ddc7cb02d65cb87e8e366115ffa51f1bd712c..681140c2242e2d5d402e8f34b3917334dee51527 100644
--- a/lib/private/appframework/middleware/middlewaredispatcher.php
+++ b/lib/private/appframework/middleware/middlewaredispatcher.php
@@ -24,7 +24,7 @@
 
 namespace OC\AppFramework\Middleware;
 
-use OCP\AppFramework\Controller\Controller;
+use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\Response;
 use OCP\AppFramework\MiddleWare;
 
diff --git a/lib/public/appframework/controller/controller.php b/lib/public/appframework/controller.php
similarity index 99%
rename from lib/public/appframework/controller/controller.php
rename to lib/public/appframework/controller.php
index b3de8c991ad04fd50b68796c459dcaa3a0864690..1642b508572a235003d73d2d719c2cdc3e39988f 100644
--- a/lib/public/appframework/controller/controller.php
+++ b/lib/public/appframework/controller.php
@@ -22,7 +22,7 @@
  */
 
 
-namespace OCP\AppFramework\Controller;
+namespace OCP\AppFramework;
 
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\IAppContainer;
diff --git a/lib/public/appframework/middleware.php b/lib/public/appframework/middleware.php
index 13b4b8cab99b38a96b14dd6411db8c701c907453..94f71ea8520ddbec62ac7ed4b5e0e1b762263337 100644
--- a/lib/public/appframework/middleware.php
+++ b/lib/public/appframework/middleware.php
@@ -24,7 +24,7 @@
 
 namespace OCP\AppFramework;
 
-use OCP\AppFramework\Controller\Controller;
+use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\Response;
 
 
diff --git a/tests/lib/appframework/AppTest.php b/tests/lib/appframework/AppTest.php
index 8942e2f442d0fcb990d4075ac367953793a3bdd8..9bedcb446e73604d5cf2e2bed4b4ed48092e31bd 100644
--- a/tests/lib/appframework/AppTest.php
+++ b/tests/lib/appframework/AppTest.php
@@ -40,7 +40,7 @@ class AppTest extends \PHPUnit_Framework_TestCase {
 	protected function setUp() {
 		$this->container = new \OC\AppFramework\DependencyInjection\DIContainer('test');
 		$this->controller = $this->getMockBuilder(
-			'OCP\AppFramework\Controller\Controller')
+			'OCP\AppFramework\Controller')
 			->disableOriginalConstructor()
 			->getMock();
 		$this->dispatcher = $this->getMockBuilder(
diff --git a/tests/lib/appframework/controller/ControllerTest.php b/tests/lib/appframework/controller/ControllerTest.php
index 614744394ed364c545cd4d65f3321b8f059d4abe..f17d5f24aa523c0e4ee0a5309d9541f66e0d562d 100644
--- a/tests/lib/appframework/controller/ControllerTest.php
+++ b/tests/lib/appframework/controller/ControllerTest.php
@@ -25,7 +25,7 @@
 namespace Test\AppFramework\Controller;
 
 use OC\AppFramework\Http\Request;
-use OCP\AppFramework\Controller\Controller;
+use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http\TemplateResponse;
 
 
diff --git a/tests/lib/appframework/http/DispatcherTest.php b/tests/lib/appframework/http/DispatcherTest.php
index fb9fd0d582a58dfa042c8f7684a1219f246b6b9b..9052fe0781ac8929e27d2b7604ccd9a5afbafe99 100644
--- a/tests/lib/appframework/http/DispatcherTest.php
+++ b/tests/lib/appframework/http/DispatcherTest.php
@@ -62,7 +62,7 @@ class DispatcherTest extends \PHPUnit_Framework_TestCase {
 			->disableOriginalConstructor()
 			->getMock();
 		$this->controller = $this->getMock(
-			'\OCP\AppFramework\Controller\Controller',
+			'\OCP\AppFramework\Controller',
 			array($this->controllerMethod), array($app, $request));
 		
 		$this->dispatcher = new Dispatcher(
diff --git a/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php b/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php
index 5a43099ebb56c48a652e20a0b1d7ecc5fb151472..95d42e4eb8ec81315e44fe1b486e4a80fec08016 100644
--- a/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php
+++ b/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php
@@ -128,7 +128,7 @@ class MiddlewareDispatcherTest extends \PHPUnit_Framework_TestCase {
 
 
 	private function getControllerMock(){
-		return $this->getMock('OCP\AppFramework\Controller\Controller', array('method'),
+		return $this->getMock('OCP\AppFramework\Controller', array('method'),
 			array($this->getAPIMock(), new Request()));
 	}
 
diff --git a/tests/lib/appframework/middleware/MiddlewareTest.php b/tests/lib/appframework/middleware/MiddlewareTest.php
index fde67fbd395e30257f57f4fe073eae83d5a92b3e..7a93c0d4ddac9b309ff43858f60743a91824b560 100644
--- a/tests/lib/appframework/middleware/MiddlewareTest.php
+++ b/tests/lib/appframework/middleware/MiddlewareTest.php
@@ -47,7 +47,7 @@ class MiddlewareTest extends \PHPUnit_Framework_TestCase {
 		$this->api = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer',
 					array(), array('test'));
 
-		$this->controller = $this->getMock('OCP\AppFramework\Controller\Controller',
+		$this->controller = $this->getMock('OCP\AppFramework\Controller',
 				array(), array($this->api, new Request()));
 		$this->exception = new \Exception();
 		$this->response = $this->getMock('OCP\AppFramework\Http\Response');
diff --git a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php b/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
index b647c01826ba5af6511e65b8a4be3b809dbc7be6..4bfd725ffd02d797647e2aa606d242101de86dbe 100644
--- a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
+++ b/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
@@ -40,7 +40,7 @@ class SecurityMiddlewareTest extends \PHPUnit_Framework_TestCase {
 
 	public function setUp() {
 		$api = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer', array(), array('test'));
-		$this->controller = $this->getMock('OCP\AppFramework\Controller\Controller',
+		$this->controller = $this->getMock('OCP\AppFramework\Controller',
 				array(), array($api, new Request()));
 
 		$this->request = new Request();
@@ -302,7 +302,7 @@ class SecurityMiddlewareTest extends \PHPUnit_Framework_TestCase {
 		$api->expects($this->once())->method('getServer')
 			->will($this->returnValue($serverMock));
 
-		$this->controller = $this->getMock('OCP\AppFramework\Controller\Controller',
+		$this->controller = $this->getMock('OCP\AppFramework\Controller',
 			array(), array($api, new Request()));
 
 		$this->request = new Request(