summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-08-01 17:32:03 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-08-01 17:32:03 +0200
commitf93a82b8b09109e391b0314f92d02d285c356ad6 (patch)
treec85246eadd2103200e26af6b208756dc87822e76 /lib/public
parent84c22fdeef6986f9038d8563937cc234751d5147 (diff)
downloadnextcloud-server-f93a82b8b09109e391b0314f92d02d285c356ad6.tar.gz
nextcloud-server-f93a82b8b09109e391b0314f92d02d285c356ad6.zip
Remove explicit type hints for Controller
This is public API and breaks the middlewares of existing apps. Since this also requires maintaining two different code paths for 12 and 13 I'm at the moment voting for reverting this change. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Middleware.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/AppFramework/Middleware.php b/lib/public/AppFramework/Middleware.php
index fbd75981b59..677e5c2e7ee 100644
--- a/lib/public/AppFramework/Middleware.php
+++ b/lib/public/AppFramework/Middleware.php
@@ -52,7 +52,7 @@ abstract class Middleware {
* the controller
* @since 6.0.0
*/
- public function beforeController(Controller $controller, $methodName){
+ public function beforeController($controller, $methodName){
}
@@ -72,7 +72,7 @@ abstract class Middleware {
* @return Response a Response object in case that the exception was handled
* @since 6.0.0
*/
- public function afterException(Controller $controller, $methodName, \Exception $exception){
+ public function afterException($controller, $methodName, \Exception $exception){
throw $exception;
}
@@ -88,7 +88,7 @@ abstract class Middleware {
* @return Response a Response object
* @since 6.0.0
*/
- public function afterController(Controller $controller, $methodName, Response $response){
+ public function afterController($controller, $methodName, Response $response){
return $response;
}
@@ -104,7 +104,7 @@ abstract class Middleware {
* @return string the output that should be printed
* @since 6.0.0
*/
- public function beforeOutput(Controller $controller, $methodName, $output){
+ public function beforeOutput($controller, $methodName, $output){
return $output;
}