@@ -184,12 +184,12 @@ public function bootstrap()
184184 switch ($ routeInfo ->getStatus ()) {
185185 case Dispatcher::NOT_FOUND :
186186 // ... 404 Not Found
187- $ this ->getUtils ()->errorPage (404 )->send ();
187+ $ this ->getUtils ()->errorPage (404 , $ request )->send ();
188188 break ;
189189 case Dispatcher::METHOD_NOT_ALLOWED :
190190 $ allowedMethods = $ this ->getRouteInfo ()->getAllowedMethods ();
191191 // ... 405 Method Not Allowed
192- $ this ->getUtils ()->errorPage (405 , ['allowedMethods ' => $ allowedMethods ])->send ();
192+ $ this ->getUtils ()->errorPage (405 , $ request , ['allowedMethods ' => $ allowedMethods ])->send ();
193193 break ;
194194 case Dispatcher::FOUND :
195195 $ handler = $ this ->getRouteInfo ()->getHandler ();
@@ -222,11 +222,11 @@ public function bootstrap()
222222 break ;
223223 }
224224 } catch (OfflineException $ e ) {
225- $ response = $ this ->getUtils ()->offlinePage ();
225+ $ response = $ this ->getUtils ()->offlinePage ($ request );
226226 } catch (BlockedIpException $ e ) {
227227 $ response = $ this ->getUtils ()->blockedIpPage ($ request );
228228 } catch (Exception $ e ) {
229- $ response = $ this ->getUtils ()->exceptionPage ($ e );
229+ $ response = $ this ->getUtils ()->exceptionPage ($ e, $ request );
230230 }
231231
232232 // dispatch "before_send" event
@@ -257,7 +257,7 @@ protected function isSiteOffline()
257257 *
258258 * @return boolean
259259 */
260- protected function isBlocked ($ ip_address )
260+ public function isBlocked ($ ip_address )
261261 {
262262 return in_array ($ ip_address , $ this ->blocked_ips );
263263 }
0 commit comments