aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-26 12:31:44 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-26 16:34:17 +0200
commit22c6c54e46070364ad5553d0ca84b500483e7ebe (patch)
treebfffa4a730ed662be1f52f8fe54bd117e059f9bc
parentb03dc344139d2a5ad069829b2f4f9c920c265740 (diff)
downloadRouter-22c6c54e46070364ad5553d0ca84b500483e7ebe.zip
Router-22c6c54e46070364ad5553d0ca84b500483e7ebe.tar.gz
Router-22c6c54e46070364ad5553d0ca84b500483e7ebe.tar.bz2
s/all/any for methods shortcut.
-rw-r--r--Generic.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Generic.php b/Generic.php
index fa8d1c1..f9ccec5 100644
--- a/Generic.php
+++ b/Generic.php
@@ -163,13 +163,13 @@ abstract class Generic implements Router {
/**
* Helper for adding rules.
* Methods are concatenated by _. If prefixed by _, it's a private rule. In
- * addition, the keyword “all” takes place for all methods.
+ * addition, the keyword “any” takes place for all methods.
* Examples:
* get(…) : addRule(…, array('get'), …);
* get_post(…) : addRule(…, array('get', 'post'), …);
* post_get(…) : same that above;
* _get(…) : addPrivateRule(…, array('get'), …);
- * all(…) : addRule(…, array(<all methods>), …);
+ * any(…) : addRule(…, array(<all methods>), …);
* head_delete(…): addRule(…, array('head', 'delete'), …).
*
* @access public
@@ -188,7 +188,7 @@ abstract class Generic implements Router {
else
$method = 'addRule';
- if('all' == $name)
+ if('any' == $name)
array_unshift($arguments, static::$_methods);
else
array_unshift($arguments, explode('_', $name));