Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Phroute/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function __construct(RouteDataInterface $data, HandlerResolverInterface $
* @param $httpMethod
* @param $uri
* @return mixed|null
* @throws Exception\HttpRouteNotFoundException
* @throws Exception\HttpMethodNotAllowedException
*/
public function dispatch($httpMethod, $uri)
{
Expand Down Expand Up @@ -111,7 +113,9 @@ private function parseFilters($filters)
*
* @param $httpMethod
* @param $uri
* @return mixed
* @throws Exception\HttpRouteNotFoundException
* @throws Exception\HttpMethodNotAllowedException
*/
private function dispatchRoute($httpMethod, $uri)
{
Expand Down Expand Up @@ -148,6 +152,7 @@ private function dispatchStaticRoute($httpMethod, $uri)
*
* @param $routes
* @param $httpMethod
* @return string
* @throws Exception\HttpMethodNotAllowedException
*/
private function checkFallbacks($routes, $httpMethod)
Expand Down Expand Up @@ -177,6 +182,7 @@ private function checkFallbacks($routes, $httpMethod)
*
* @param $httpMethod
* @param $uri
* @return mixed
* @throws Exception\HttpMethodNotAllowedException
* @throws Exception\HttpRouteNotFoundException
*/
Expand Down