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

at line 39
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

at line 74
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