diff --git a/src/Phroute/Dispatcher.php b/src/Phroute/Dispatcher.php index 6e637e5..cefdf27 100644 --- a/src/Phroute/Dispatcher.php +++ b/src/Phroute/Dispatcher.php @@ -67,7 +67,7 @@ public function dispatch($httpMethod, $uri) * @param null $response * @return mixed|null */ - private function dispatchFilters($filters, $response = null) + protected function dispatchFilters($filters, $response = null) { while($filter = array_shift($filters)) { @@ -88,7 +88,7 @@ private function dispatchFilters($filters, $response = null) * @param $filters * @return array */ - private function parseFilters($filters) + protected function parseFilters($filters) { $beforeFilter = array(); $afterFilter = array(); @@ -113,7 +113,7 @@ private function parseFilters($filters) * @param $uri * @throws Exception\HttpRouteNotFoundException */ - private function dispatchRoute($httpMethod, $uri) + protected function dispatchRoute($httpMethod, $uri) { if (isset($this->staticRouteMap[$uri])) { @@ -131,7 +131,7 @@ private function dispatchRoute($httpMethod, $uri) * @return mixed * @throws Exception\HttpMethodNotAllowedException */ - private function dispatchStaticRoute($httpMethod, $uri) + protected function dispatchStaticRoute($httpMethod, $uri) { $routes = $this->staticRouteMap[$uri]; @@ -150,7 +150,7 @@ private function dispatchStaticRoute($httpMethod, $uri) * @param $httpMethod * @throws Exception\HttpMethodNotAllowedException */ - private function checkFallbacks($routes, $httpMethod) + protected function checkFallbacks($routes, $httpMethod) { $additional = array(Route::ANY); @@ -180,7 +180,7 @@ private function checkFallbacks($routes, $httpMethod) * @throws Exception\HttpMethodNotAllowedException * @throws Exception\HttpRouteNotFoundException */ - private function dispatchVariableRoute($httpMethod, $uri) + protected function dispatchVariableRoute($httpMethod, $uri) { foreach ($this->variableRouteData as $data) {