ParameterBagUtils

ParameterBagUtils

class ParameterBagUtils

Methods

static mixed getParameterBagValue(ParameterBag $parameters, string $path)

Returns a "parameter" value.

static mixed getRequestParameterValue(Request $request, string $path)

Returns a request "parameter" value.

Details

static mixed getParameterBagValue(ParameterBag $parameters, string $path)

Returns a "parameter" value.

Paths like foo[bar] will be evaluated to find deeper items in nested data structures.

Parameters

ParameterBag $parameters The parameter bag
string $path The key

Return Value

mixed

Exceptions

InvalidArgumentException when the given path is malformed

static mixed getRequestParameterValue(Request $request, string $path)

Returns a request "parameter" value.

Paths like foo[bar] will be evaluated to find deeper items in nested data structures.

Parameters

Request $request The request
string $path The key

Return Value

mixed

Exceptions

InvalidArgumentException when the given path is malformed

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Security/Http/ParameterBagUtils.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部