Prop argument type for Middleware

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-07-25 22:15:28 +02:00
parent 973b859cdd
commit 72eb610b3d
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}