opened
MercadoVentures
username_0
| Q             | A
| ------------- | ---
| Is bugfix?    | no
| New feature?  | yes
| Breaks BC?    | no
| Tests pass?   | yes (also used for months in large live environment)
| Fixed issues  | Multidimensional Superglobals can now be written/read

Currently, users can only read one dimensional $_GET $_POST etc.. SUPERGLOBALS. Such as 

`Yii::$app->request->post('item');`

With this change users can also read multidimensional GET/POST etc..

An array can be provided as parameter now:

`Yii::$app->request->post(['item', 'description'])`

or

`Yii::$app->request->get(['user', 'profile', 'name'])`

There is no limit (outside HTML form HTTP header limitations) on the depth of dimensions that can be accessed.

**Most importantly: The current functionality is fully maintained, this addition only extends with new functionality.**
Multidimensional Superglobals in request
issue
created
cebe
username_1
related discussions: #8351 #8100
comment
created
cebe
username_1
there should be tests covering the new feature too. However this is only worth the effort if we decide to add this feature.

If we add it, it should be available for both, post and get.
comment
created
cebe
username_1
why did you close it?
comment