[RequestHandler] changed server object in Request to be a simple ParameterBag
This commit is contained in:
parent
5d77229aca
commit
04da781529
@ -75,7 +75,7 @@ class Request
|
|||||||
$this->path = new ParameterBag(null !== $path ? $path : array());
|
$this->path = new ParameterBag(null !== $path ? $path : array());
|
||||||
$this->cookies = new ParameterBag(null !== $cookies ? $cookies : $_COOKIE);
|
$this->cookies = new ParameterBag(null !== $cookies ? $cookies : $_COOKIE);
|
||||||
$this->files = new ParameterBag($this->convertFileInformation(null !== $files ? $files : $_FILES));
|
$this->files = new ParameterBag($this->convertFileInformation(null !== $files ? $files : $_FILES));
|
||||||
$this->server = new HeaderBag(null !== $server ? $server : $_SERVER, 'request');
|
$this->server = new ParameterBag(null !== $server ? $server : $_SERVER);
|
||||||
$this->headers = new HeaderBag($this->initializeHeaders(), 'request');
|
$this->headers = new HeaderBag($this->initializeHeaders(), 'request');
|
||||||
|
|
||||||
$this->languages = null;
|
$this->languages = null;
|
||||||
@ -793,7 +793,7 @@ class Request
|
|||||||
$headers = array();
|
$headers = array();
|
||||||
foreach ($this->server->all() as $key => $value)
|
foreach ($this->server->all() as $key => $value)
|
||||||
{
|
{
|
||||||
if ('http-' === strtolower(substr($key, 0, 5)))
|
if ('http_' === strtolower(substr($key, 0, 5)))
|
||||||
{
|
{
|
||||||
$headers[substr($key, 5)] = $value;
|
$headers[substr($key, 5)] = $value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user