aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-12-13 10:57:04 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-12-13 10:57:04 +0100
commit3170b668e81f5f6b17f419d3c2cc8475b0118830 (patch)
tree3510a77ea2b376ea73224fe128efad5b176130c7
parent92cc1236126f03db44d3b9e1e5fa1cc08f4bdf49 (diff)
downloadRouter-3170b668e81f5f6b17f419d3c2cc8475b0118830.zip
Router-3170b668e81f5f6b17f419d3c2cc8475b0118830.tar.gz
Router-3170b668e81f5f6b17f419d3c2cc8475b0118830.tar.bz2
Add the routed URI 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 5ce5fbe..f2f386b 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]['_uri'] = $uri;
$rule[Router::RULE_VARIABLES]['_method'] = $method;
$rule[Router::RULE_VARIABLES]['_domain'] = static::getDomain();
$rule[Router::RULE_VARIABLES]['_subdomain'] = $sub;