8000 [HttpFoundation] tweaked previous merge (refs #8185) · symfony/symfony@f731d99 · GitHub
[go: up one dir, main page]

Skip to content

Commit f731d99

Browse files
committed
[HttpFoundation] tweaked previous merge (refs #8185)
1 parent 7eb4fde commit f731d99

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/Symfony/Component/HttpFoundation/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
2.4.0
5+
-----
6+
7+
* added Request::getEncodings()
8+
49
2.3.0
510
-----
611

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ class Request
117117
*/
118118
protected $charsets;
119119

120+
/**
121+
* @var array
122+
*/
123+
protected $encodings;
124+
120125
/**
121126
* @var array
122127
*/
@@ -1450,14 +1455,13 @@ public function getCharsets()
14501455
* Gets a list of encodings acceptable by the client browser.
14511456
*
14521457
* @return array List of encodings in preferable order
1453-
*
1454-
* @api
14551458
*/
14561459
public function getEncodings()
14571460
{
14581461
if (null !== $this->encodings) {
14591462
return $this->encodings;
14601463
}
1464+
14611465
return $this->encodings = array_keys(AcceptHeader::fromString($this->headers->get('Accept-Encoding'))->all());
14621466
}
14631467

0 commit comments

Comments
 (0)
0