mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
14 lines
No EOL
264 B
PHP
14 lines
No EOL
264 B
PHP
<?php
|
|
|
|
class ExceptionHandlerFirst implements \Pecee\Handlers\IExceptionHandler
|
|
{
|
|
public function handleError(\Pecee\Http\Request $request, \Exception $error)
|
|
{
|
|
global $stack;
|
|
$stack[] = static::class;
|
|
|
|
$request->setUrl('/');
|
|
return $request;
|
|
}
|
|
|
|
} |