mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
6213f2fb75
- Optimised Input-classes. - `get` and `getObject` methods on `Input` now supports filtering on multiple method-types when using the `$method` parameter. - Input classes now know how to parse that stupid nested $_FILES array. - It's now possible to change method-names on ResourceControllers. - Removed `getValue` and `setValue` from `InputFile` classes. - Ensured that request-method are only parsed from $_POST or $_SERVER. - Fixed minor parameter-issues with subdomain routing. - Added PHPDocs. - Added even more unit-tests. - Many small optimisations tweaks.
13 lines
339 B
PHP
13 lines
339 B
PHP
<?php
|
|
|
|
class TestExceptionHandlerSecond implements \Pecee\Handlers\IExceptionHandler
|
|
{
|
|
public function handleError(\Pecee\Http\Request $request, \Pecee\SimpleRouter\Route\ILoadableRoute &$route = null, \Exception $error)
|
|
{
|
|
echo 'ExceptionHandler 2 loaded' . chr(10);
|
|
|
|
$request->setUri('/');
|
|
return $request;
|
|
}
|
|
|
|
} |