From d4cdc0844dc900f2bdee1c17ec3abb4c50fc2bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Thu, 29 Mar 2018 10:14:08 +0200 Subject: [PATCH] Updated documentation. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f8c2c00..dd3d022 100644 --- a/README.md +++ b/README.md @@ -843,7 +843,7 @@ class CustomMiddleware implements Middleware { // If authentication failed, redirect request to user-login page. if($request->user === null) { $request->setRewriteUrl(url('user.login')); - return $request; + return; } } @@ -908,7 +908,7 @@ class CustomExceptionHandler implements IExceptionHandler // Render custom 404-page $request->setRewriteCallback('Demo\Controllers\PageController@notFound'); - return $request; + return; }