From 1e1ecc43ceaa6e88be404d4bcd78f98816b574f0 Mon Sep 17 00:00:00 2001 From: Evgenij Efimov Date: Sun, 27 Dec 2015 17:22:12 +0300 Subject: [PATCH] Removed doc about getting original parameter value from ParameterBag --- components/http_foundation/introduction.rst | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/components/http_foundation/introduction.rst b/components/http_foundation/introduction.rst index b929a9d5fcb..b062dc8dbba 100644 --- a/components/http_foundation/introduction.rst +++ b/components/http_foundation/introduction.rst @@ -151,11 +151,7 @@ exist:: When PHP imports the request query, it handles request parameters like ``foo[bar]=bar`` in a special way as it creates an array. So you can get the -``foo`` parameter and you will get back an array with a ``bar`` element. But -sometimes, you might want to get the value for the "original" parameter name: -``foo[bar]``. This is possible with all the ``ParameterBag`` getters like -:method:`Symfony\\Component\\HttpFoundation\\Request::get` via the third -argument:: +``foo`` parameter and you will get back an array with a ``bar`` element:: // the query string is '?foo[bar]=bar' @@ -163,10 +159,7 @@ argument:: // returns array('bar' => 'bar') $request->query->get('foo[bar]'); - // returns null - - $request->query->get('foo[bar]', null, true); - // returns 'bar' + // returns null .. _component-foundation-attributes: