- 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:
Simon Sessingø
2016-04-21 07:16:29 +02:00
parent f7af53a9af
commit 1420203149
3 changed files with 44 additions and 5 deletions
+3 -1
View File
@@ -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);