diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-19 23:46:21 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-19 23:46:21 +0200 |
commit | d4ac7ac723e1b7a559d835fa0d1d5bb69e76b16a (patch) | |
tree | 48f14e7d61ea58ca35a6c5112992f48f8d0bbffa | |
parent | 319a3ffd857d63a66a3c2120cb72a89cad07b0a7 (diff) | |
parent | 7f2f92847be98bbf3a0a5ca8567fab001bb131c1 (diff) | |
download | nextcloud-server-d4ac7ac723e1b7a559d835fa0d1d5bb69e76b16a.tar.gz nextcloud-server-d4ac7ac723e1b7a559d835fa0d1d5bb69e76b16a.zip |
Merge pull request #15739 from DavidPrevot/symfony-2.7
Replace `_method` requirement by {g,s}etMethods()
-rw-r--r-- | lib/private/route/route.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/route/route.php b/lib/private/route/route.php index cb864d3d73d..b33360f11ec 100644 --- a/lib/private/route/route.php +++ b/lib/private/route/route.php @@ -37,7 +37,7 @@ class Route extends SymfonyRoute implements IRoute { * @return \OC\Route\Route */ public function method($method) { - $this->setRequirement('_method', strtoupper($method)); + $this->setMethods($method); return $this; } @@ -109,7 +109,7 @@ class Route extends SymfonyRoute implements IRoute { * @return \OC\Route\Route */ public function requirements($requirements) { - $method = $this->getRequirement('_method'); + $method = $this->getMethods(); $this->setRequirements($requirements); if (isset($requirements['_method'])) { $method = $requirements['_method']; |