summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Middleware.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-07-25 22:15:28 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-07-31 16:54:19 +0200
commit72eb610b3d0c73e7dd79286c0719152688a5f915 (patch)
tree97b982c823bd8b44b1d5d07c5dbf4f937e93d096 /lib/public/AppFramework/Middleware.php
parent973b859cdd0d815547f6e3d876d04ae56e2de4ff (diff)
downloadnextcloud-server-72eb610b3d0c73e7dd79286c0719152688a5f915.tar.gz
nextcloud-server-72eb610b3d0c73e7dd79286c0719152688a5f915.zip
Prop argument type for Middleware
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/AppFramework/Middleware.php')
-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 677e5c2e7ee..fbd75981b59 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, $methodName){
+ public function beforeController(Controller $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, $methodName, \Exception $exception){
+ public function afterException(Controller $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, $methodName, Response $response){
+ public function afterController(Controller $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, $methodName, $output){
+ public function beforeOutput(Controller $controller, $methodName, $output){
return $output;
}