Skip to content

Commit

Permalink
Fixed issue with naming routes
Browse files Browse the repository at this point in the history
  • Loading branch information
VeeeneX committed Aug 1, 2015
1 parent 46cc553 commit 6cbce4b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function setBaseUri($baseUri)
*/
public function get($pattern, $callable, $name = null)
{
$this->addRoute("GET", $pattern, $callable, $name = null);
$this->addRoute("GET", $pattern, $callable, $name);
}

/**
Expand All @@ -165,7 +165,7 @@ public function get($pattern, $callable, $name = null)
*/
public function post($pattern, $callable, $name = null)
{
$this->addRoute('POST', $pattern, $callable, $name = null);
$this->addRoute('POST', $pattern, $callable, $name);
}

/**
Expand All @@ -175,7 +175,7 @@ public function post($pattern, $callable, $name = null)
*/
public function patch($pattern, $callable, $name = null)
{
$this->addRoute('PATCH', $pattern, $callable, $name = null);
$this->addRoute('PATCH', $pattern, $callable, $name);
}

/**
Expand All @@ -185,7 +185,7 @@ public function patch($pattern, $callable, $name = null)
*/
public function delete($pattern, $callable, $name = null)
{
$this->addRoute('DELETE', $pattern, $callable, $name = null);
$this->addRoute('DELETE', $pattern, $callable, $name);
}

/**
Expand All @@ -195,7 +195,7 @@ public function delete($pattern, $callable, $name = null)
*/
public function put($pattern, $callable, $name = null)
{
$this->addRoute('PUT', $pattern, $callable, $name = null);
$this->addRoute('PUT', $pattern, $callable, $name);
}

/**
Expand All @@ -205,7 +205,7 @@ public function put($pattern, $callable, $name = null)
*/
public function options($pattern, $callable, $name = null)
{
$this->addRoute('OPTIONS', $pattern, $callable, $name = null);
$this->addRoute('OPTIONS', $pattern, $callable, $name);
}

/**
Expand All @@ -215,7 +215,7 @@ public function options($pattern, $callable, $name = null)
*/
public function any($pattern, $callable, $name = null)
{
$this->addRoute('ANY', $pattern, $callable, $name = null);
$this->addRoute('ANY', $pattern, $callable, $name);
}

/**
Expand Down

0 comments on commit 6cbce4b

Please sign in to comment.