[HttpFoundation] added Request::setRequestFormat()

This commit is contained in:
Fabien Potencier 2010-08-17 19:17:33 +02:00
parent f48aeb1021
commit 3f2aa37f12

View File

@ -516,6 +516,11 @@ class Request
return $this->format;
}
public function setRequestFormat($format)
{
$this->format = $format;
}
public function isMethodSafe()
{
return in_array(strtolower($this->getMethod()), array('get', 'head'));