summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-19 23:46:21 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-19 23:46:21 +0200
commitd4ac7ac723e1b7a559d835fa0d1d5bb69e76b16a (patch)
tree48f14e7d61ea58ca35a6c5112992f48f8d0bbffa
parent319a3ffd857d63a66a3c2120cb72a89cad07b0a7 (diff)
parent7f2f92847be98bbf3a0a5ca8567fab001bb131c1 (diff)
downloadnextcloud-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.php4
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'];