aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-02-17 14:24:45 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-02-17 14:25:24 +0100
commit3862fc78284fd20a1f4af2a71c6782a902a5459e (patch)
tree36929aac965ad071105b4618a923ed6926063be6
parent3af6e244bf48016420d0496a681e767584d7b1f3 (diff)
downloadRouter-3862fc78284fd20a1f4af2a71c6782a902a5459e.zip
Router-3862fc78284fd20a1f4af2a71c6782a902a5459e.tar.gz
Router-3862fc78284fd20a1f4af2a71c6782a902a5459e.tar.bz2
Allow to define new HTTP methods in sub-classes.
-rw-r--r--Http/Http.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Http.php b/Http/Http.php
index 1b75646..719a261 100644
--- a/Http/Http.php
+++ b/Http/Http.php
@@ -219,7 +219,7 @@ class Http extends Router\Generic implements Core\Parameter\Parameterizable {
$method = strtolower($method);
});
- $diff = array_diff($methods, self::$_methods);
+ $diff = array_diff($methods, static::$_methods);
if(!empty($diff))
throw new Router\Exception(
@@ -227,7 +227,7 @@ class Http extends Router\Generic implements Core\Parameter\Parameterizable {
? 'Method %s is'
: 'Methods %s are') .
' invalid for the rule %s (valid methods are: %s).',
- 1, [implode(', ', $diff), $id, implode(', ', self::$_methods)]);
+ 1, [implode(', ', $diff), $id, implode(', ', static::$_methods)]);
if( _static == $this->_subdomainStack
&& false != strpos($pattern, '@'))