mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
14 lines
285 B
PHP
14 lines
285 B
PHP
<?php
|
|
|
|
class ExceptionHandlerFirst implements \Pecee\Handlers\IExceptionHandler
|
|
{
|
|
public function handleError(\Pecee\Http\Request $request, \Exception $error)
|
|
{
|
|
global $stack;
|
|
$stack[] = static::class;
|
|
|
|
$request->setUri(new \Pecee\Http\Uri('/'));
|
|
return $request;
|
|
}
|
|
|
|
} |