mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
ff3f1bdcdd
- Fixed issue #227 causing custom resource-routes not to be loaded after latest update. - Optimized `RouteResource` class. - Renamed `IRestController` to `IResourceController`. - Added unit-tests for RouterResource. - Simplified unit-tests with the `TestRouter` custom router class.
13 lines
284 B
PHP
13 lines
284 B
PHP
<?php
|
|
|
|
class ExceptionHandlerThird implements \Pecee\Handlers\IExceptionHandler
|
|
{
|
|
public function handleError(\Pecee\Http\Request $request, \Exception $error)
|
|
{
|
|
global $stack;
|
|
$stack[] = static::class;
|
|
|
|
throw new ResponseException('ExceptionHandler loaded');
|
|
}
|
|
|
|
} |