mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 18:23:26 +03:00
13 lines
252 B
PHP
13 lines
252 B
PHP
<?php
|
|
|
|
class ExceptionHandlerFirst implements \Pecee\Handlers\IExceptionHandler
|
|
{
|
|
public function handleError(\Pecee\Http\Request $request, \Exception $error) : void
|
|
{
|
|
global $stack;
|
|
$stack[] = static::class;
|
|
|
|
$request->setUrl('/');
|
|
}
|
|
|
|
} |