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.
18 lines
287 B
PHP
18 lines
287 B
PHP
<?php
|
|
|
|
class ResponseException extends \Exception
|
|
{
|
|
protected $response;
|
|
|
|
public function __construct($response)
|
|
{
|
|
$this->response = $response;
|
|
parent::__construct('', 0);
|
|
}
|
|
|
|
public function getResponse()
|
|
{
|
|
return $this->response;
|
|
}
|
|
|
|
} |