Set GET required in Symfony Route

This commit is contained in:
Chris Boden 2016-12-30 13:26:04 -05:00
parent 7215ffe9e6
commit 64bc5822c8

View File

@ -132,7 +132,7 @@ class App {
}
}
$this->routes->add('rr-' . ++$this->_routeCounter, new Route($path, array('_controller' => $decorated), array('Origin' => $this->httpHost), array(), $httpHost));
$this->routes->add('rr-' . ++$this->_routeCounter, new Route($path, array('_controller' => $decorated), array('Origin' => $this->httpHost), array(), $httpHost, array(), array('GET')));
return $decorated;
}