Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase method visibility #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
12 changes: 6 additions & 6 deletions src/Phroute/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand All @@ -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();
Expand All @@ -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]))
{
Expand All @@ -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];

Expand All @@ -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);

Expand Down Expand Up @@ -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)
{
Expand Down