[HttpFoundation] added Request::setRequestFormat()
This commit is contained in:
parent
f48aeb1021
commit
3f2aa37f12
@ -516,6 +516,11 @@ class Request
|
|||||||
return $this->format;
|
return $this->format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setRequestFormat($format)
|
||||||
|
{
|
||||||
|
$this->format = $format;
|
||||||
|
}
|
||||||
|
|
||||||
public function isMethodSafe()
|
public function isMethodSafe()
|
||||||
{
|
{
|
||||||
return in_array(strtolower($this->getMethod()), array('get', 'head'));
|
return in_array(strtolower($this->getMethod()), array('get', 'head'));
|
||||||
|
Reference in New Issue
Block a user