Updated demo project + documentation

This commit is contained in:
Simon Sessingø
2016-11-15 05:48:08 +01:00
parent 83c73a4240
commit a13bcd4768
2 changed files with 3 additions and 2 deletions
@@ -7,7 +7,7 @@ use Pecee\SimpleRouter\RouterEntry;
class CustomExceptionHandler implements IExceptionHandler {
public function handleError( Request $request, RouterEntry $router = null, \Exception $error) {
public function handleError( Request $request, RouterEntry &$route = null, \Exception $error) {
// Return json errors if we encounter an error on /api.
if(stripos($request->getUri(), '/api') !== false) {