Skip to content

Commit 32c510f

Browse files
committed
Merge pull request #2971 from xabbuh/issue-2958
document the getEncodings() method of the Request class
2 parents 88f051a + 67901ff commit 32c510f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/http_foundation/introduction.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,13 @@ by using the following methods:
240240
returns the list of accepted languages ordered by descending quality;
241241

242242
* :method:`Symfony\\Component\\HttpFoundation\\Request::getCharsets`:
243-
returns the list of accepted charsets ordered by descending quality.
243+
returns the list of accepted charsets ordered by descending quality;
244+
245+
* :method:`Symfony\\Component\\HttpFoundation\\Request::getEncodings`:
246+
returns the list of accepted encodings in preferable order.
247+
248+
.. versionadded:: 2.4
249+
The ``getEncodings()`` method was added in Symfony 2.4.
244250

245251
.. versionadded:: 2.2
246252
The :class:`Symfony\\Component\\HttpFoundation\\AcceptHeader` class is new in Symfony 2.2.

0 commit comments

Comments
 (0)