aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-01-09 14:48:03 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-01-09 14:48:03 +0100
commit1bce86237c4a87a845087614e5b14dc996885dee (patch)
tree532cb21a7dcddcf8899e7348a75bdfb07178fc42
parenta7d1bb64f786915c9843cea8115f340ee4161115 (diff)
downloadRouter-1bce86237c4a87a845087614e5b14dc996885dee.zip
Router-1bce86237c4a87a845087614e5b14dc996885dee.tar.gz
Router-1bce86237c4a87a845087614e5b14dc996885dee.tar.bz2
Fix when the `_method` router variable is missing.2.15.01.23
-rw-r--r--Cli.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Cli.php b/Cli.php
index 1287e11..94a5a64 100644
--- a/Cli.php
+++ b/Cli.php
@@ -245,8 +245,9 @@ class Cli extends Generic implements \Hoa\Core\Parameter\Parameterizable {
'Cannot found an appropriated rule to route %s.', 5, $uri);
array_shift($muri);
- $rule[Router::RULE_VARIABLES]['_call'] = &$rule[Router::RULE_CALL];
- $rule[Router::RULE_VARIABLES]['_able'] = &$rule[Router::RULE_ABLE];
+ $rule[Router::RULE_VARIABLES]['_method'] = 'get';
+ $rule[Router::RULE_VARIABLES]['_call'] = &$rule[Router::RULE_CALL];
+ $rule[Router::RULE_VARIABLES]['_able'] = &$rule[Router::RULE_ABLE];
$caseless = 0 === preg_match(
'#\(\?\-[imsxUXJ]+\)#',