mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
@@ -221,6 +221,7 @@ class Router
|
|||||||
* @param bool $rewrite
|
* @param bool $rewrite
|
||||||
* @return string|mixed
|
* @return string|mixed
|
||||||
* @throws HttpException
|
* @throws HttpException
|
||||||
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public function routeRequest($rewrite = false)
|
public function routeRequest($rewrite = false)
|
||||||
{
|
{
|
||||||
@@ -334,6 +335,7 @@ class Router
|
|||||||
/**
|
/**
|
||||||
* @param \Exception $e
|
* @param \Exception $e
|
||||||
* @throws HttpException
|
* @throws HttpException
|
||||||
|
* @throws \Exception
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function handleException(\Exception $e)
|
protected function handleException(\Exception $e)
|
||||||
@@ -365,7 +367,7 @@ class Router
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new HttpException($e->getMessage(), (int)$e->getCode(), $e->getPrevious());
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function arrayToParams(array $getParams = [], $includeEmpty = true)
|
public function arrayToParams(array $getParams = [], $includeEmpty = true)
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ class SimpleRouter
|
|||||||
/**
|
/**
|
||||||
* @throws \Pecee\Http\Exceptions\MalformedUrlException
|
* @throws \Pecee\Http\Exceptions\MalformedUrlException
|
||||||
* @throws HttpException
|
* @throws HttpException
|
||||||
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public static function start()
|
public static function start()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user