8000 Revert "minor #9898 [HttpFoundation] Add info for getAcceptableFormat… · symfony/symfony-docs@27967c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27967c2

Browse files
committed
Revert "minor #9898 [HttpFoundation] Add info for getAcceptableFormats() method (AndreiIgna)"
This reverts commit fbca6db, reversing changes made to d161cf3.
1 parent b841679 commit 27967c2

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)
0