From 27967c2394e7cf0ceae9a2c4fca8eb9c51995da2 Mon Sep 17 00:00:00 2001 From: kunicmarko20 Date: Sat, 10 Nov 2018 15:33:45 +0000 Subject: [PATCH] Revert "minor #9898 [HttpFoundation] Add info for getAcceptableFormats() method (AndreiIgna)" This reverts commit fbca6db693a3b6db65471547c85c12251ea8a111, reversing changes made to d161cf30f55e8062d389bb6862a619062bd94291. --- components/http_foundation.rst | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/components/http_foundation.rst b/components/http_foundation.rst index 60b164c3cd1..8cf8762deaf 100644 --- a/components/http_foundation.rst +++ b/components/http_foundation.rst @@ -290,21 +290,6 @@ by using the following methods: :method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableContentTypes` Returns the list of accepted content types ordered by descending quality. -:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableFormats` - Returns the list of accepted client formats associated with the request. - -Note that -:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableFormats` -will use the data from -:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableContentTypes` -and return the client acceptable formats:: - - $request->getAcceptableContentTypes(); - // returns ['text/html', 'application/xhtml+xml', 'application/xml', '*/*'] - - $request->getAcceptableFormats(); - // returns ['html', 'xml'] - :method:`Symfony\\Component\\HttpFoundation\\Request::getLanguages` Returns the list of accepted languages ordered by descending quality.