Skip to content

Commit 0bb5e2b

Browse files
committed
minor #10657 Revert "minor #9898 [HttpFoundation] Add info for getAcceptableFormat… (kunicmarko20)
This PR was merged into the master branch. Discussion ---------- Revert "minor #9898 [HttpFoundation] Add info for getAcceptableFormat… This reverts commit fbca6db, because it was reverted in the core symfony/symfony#29047. closes #10656 Commits ------- 27967c2 Revert "minor #9898 [HttpFoundation] Add info for getAcceptableFormats() method (AndreiIgna)"
2 parents b841679 + 27967c2 commit 0bb5e2b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

components/http_foundation.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -290,21 +290,6 @@ by using the following methods:
290290
:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableContentTypes`
291291
Returns the list of accepted content types ordered by descending quality.
292292

293-
:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableFormats`
294-
Returns the list of accepted client formats associated with the request.
295-
296-
Note that
297-
:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableFormats`
298-
will use the data from
299-
:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableContentTypes`
300-
and return the client acceptable formats::
301-
302-
$request->getAcceptableContentTypes();
303-
// returns ['text/html', 'application/xhtml+xml', 'application/xml', '*/*']
304-
305-
$request->getAcceptableFormats();
306-
// returns ['html', 'xml']
307-
308293
:method:`Symfony\\Component\\HttpFoundation\\Request::getLanguages`
309294
Returns the list of accepted languages ordered by descending quality.
310295

0 commit comments

Comments
 (0)