Skip to content

Commit

Permalink
Controller: Fixing HTTP-method-specific bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomFrost committed Jan 4, 2012
1 parent 702943a commit 75f6200
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controller/Router.php
Expand Up @@ -415,7 +415,7 @@ public function catchAll($defaults, $overrides=array(), $argOrder=null,
*/
public function delete($path, $defaults=null, $overrides=null,
$restrictions=null, $argOrder=null, $argsAsArray=false) {
return request($path, $defaults, $overrides, $restrictions,
return $this->request($path, $defaults, $overrides, $restrictions,
$argOrder, $argsAsArray, 'DELETE');
}

Expand Down Expand Up @@ -449,7 +449,7 @@ public function delete($path, $defaults=null, $overrides=null,
*/
public function get($path, $defaults=null, $overrides=null,
$restrictions=null, $argOrder=null, $argsAsArray=false) {
return request($path, $defaults, $overrides, $restrictions,
return $this->request($path, $defaults, $overrides, $restrictions,
$argOrder, $argsAsArray, 'GET');
}

Expand Down Expand Up @@ -562,7 +562,7 @@ protected function passRequest($controller, $function, $args=null,
*/
public function post($path, $defaults=null, $overrides=null,
$restrictions=null, $argOrder=null, $argsAsArray=false) {
return request($path, $defaults, $overrides, $restrictions,
return $this->request($path, $defaults, $overrides, $restrictions,
$argOrder, $argsAsArray, 'POST');
}

Expand Down Expand Up @@ -653,7 +653,7 @@ protected function processPath($path, $restrictions=null, &$args=null) {
$path = str_replace('(', '(?:', $path, $openParens);
$path = str_replace(')', ')?', $path, $closeParens);
if ($openParens !== $closeParens) {
throw new RouterSyntaxException(
throw new RouteSyntaxException(
"Unequal number of closing and opening parentheses in '" .
$path . "'.");
}
Expand Down Expand Up @@ -714,7 +714,7 @@ protected function processPath($path, $restrictions=null, &$args=null) {
*/
public function put($path, $defaults=null, $overrides=null,
$restrictions=null, $argOrder=null, $argsAsArray=false) {
return request($path, $defaults, $overrides, $restrictions,
return $this->request($path, $defaults, $overrides, $restrictions,
$argOrder, $argsAsArray, 'PUT');
}

Expand Down

0 comments on commit 75f6200

Please sign in to comment.