aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-06 23:34:39 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-06 23:34:39 +0200
commitc42b6a5a2d53dbac7a7a1411808958f5e6ee9702 (patch)
tree8cfd31ab880bc9b9ec30b88c9fa138cc8738d55e
parentf4f28b4d671ab0f2557dd12201e09fe19a27ba8d (diff)
downloadRouter-c42b6a5a2d53dbac7a7a1411808958f5e6ee9702.zip
Router-c42b6a5a2d53dbac7a7a1411808958f5e6ee9702.tar.gz
Router-c42b6a5a2d53dbac7a7a1411808958f5e6ee9702.tar.bz2
getURI() is now static.
-rw-r--r--Cli.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cli.php b/Cli.php
index 348c838..73b3b97 100644
--- a/Cli.php
+++ b/Cli.php
@@ -213,7 +213,7 @@ class Cli extends Generic implements \Hoa\Core\Parameter\Parameterizable {
public function route ( $uri = null, $base = null ) {
if(null === $uri)
- $uri = $this->getURI();
+ $uri = static::getURI();
$method = $this->getMethod();
$rules = array_filter(
@@ -337,7 +337,7 @@ class Cli extends Generic implements \Hoa\Core\Parameter\Parameterizable {
* @access public
* @return string
*/
- public function getURI ( ) {
+ public static function getURI ( ) {
if(!isset($_SERVER['argv']))
return null;