mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
- Added custom ExceptionHandler example to documentation.
- Fixed reference to request() helper in Input class. - Changed RouterBase handleException method to support 404-exceptions.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
namespace Pecee\Http\Input;
|
||||
|
||||
use Pecee\Http\Request;
|
||||
|
||||
class Input {
|
||||
|
||||
/**
|
||||
@@ -55,7 +57,7 @@ class Input {
|
||||
return $element;
|
||||
}
|
||||
|
||||
if(request()->getMethod() !== 'get') {
|
||||
if(Request::getInstance()->getMethod() !== 'get') {
|
||||
|
||||
$element = $this->post->findFirst($index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user