aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-12-12 18:43:50 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-12-12 18:43:50 +0100
commit92cc1236126f03db44d3b9e1e5fa1cc08f4bdf49 (patch)
tree0b5744add94f4560f0a41c9ff6d2dcd4754a51e8
parent2a2ae68a3332cb0b3b5a53fa250eeea79553ad1b (diff)
downloadRouter-92cc1236126f03db44d3b9e1e5fa1cc08f4bdf49.zip
Router-92cc1236126f03db44d3b9e1e5fa1cc08f4bdf49.tar.gz
Router-92cc1236126f03db44d3b9e1e5fa1cc08f4bdf49.tar.bz2
Add the request method as a special variable.
-rw-r--r--Http.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/Http.php b/Http.php
index 2c9baf2..5ce5fbe 100644
--- a/Http.php
+++ b/Http.php
@@ -396,6 +396,7 @@ class Http extends Generic implements \Hoa\Core\Parameter\Parameterizable {
array_shift($muri);
$sub = array_shift($msubdomain) ?: null;
+ $rule[Router::RULE_VARIABLES]['_method'] = $method;
$rule[Router::RULE_VARIABLES]['_domain'] = static::getDomain();
$rule[Router::RULE_VARIABLES]['_subdomain'] = $sub;
$rule[Router::RULE_VARIABLES]['_call'] = &$rule[Router::RULE_CALL];