mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
a8620cbc70
- Simplified exception-handling (see demo project for examples). - Optimised sample-project. - Optimised and added further unit-tests. - Optimised and bugfixes.
8 lines
236 B
PHP
8 lines
236 B
PHP
<?php
|
|
class ExceptionHandler implements \Pecee\Handler\IExceptionHandler {
|
|
|
|
public function handleError(\Pecee\Http\Request $request, \Pecee\SimpleRouter\RouterEntry $router = null, \Exception $error){
|
|
throw $error;
|
|
}
|
|
|
|
} |