class ParameterBagUtils
static mixed | getParameterBagValue(ParameterBag $parameters, string $path) Returns a "parameter" value. | |
static mixed | getRequestParameterValue(Request $request, string $path) Returns a request "parameter" value. |
Returns a "parameter" value.
Paths like foo[bar] will be evaluated to find deeper items in nested data structures.
ParameterBag | $parameters | The parameter bag |
string | $path | The key |
mixed |
InvalidArgumentException | when the given path is malformed |
Returns a request "parameter" value.
Paths like foo[bar] will be evaluated to find deeper items in nested data structures.
Request | $request | The request |
string | $path | The key |
mixed |
InvalidArgumentException | when the given path is malformed |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/ParameterBagUtils.html