class RequestHelper extends Helper

RequestHelper provides access to the current request parameters.

Properties

protected $charset from Helper
protected $requestStack

Methods

setCharset(string $charset)

Sets the default charset.

from Helper
string
getCharset()

Gets the default charset.

from Helper
__construct(RequestStack $requestStack)

No description

mixed
getParameter(string $key, string $default = null)

Returns a parameter from the current request object.

string
getLocale()

Returns the locale.

string
getName()

Returns the canonical name of this helper.

Details

in Helper at line 31
setCharset(string $charset)

Sets the default charset.

Parameters

string $charset The charset

in Helper at line 41
string getCharset()

Gets the default charset.

Return Value

string The default charset

at line 26
__construct(RequestStack $requestStack)

Parameters

RequestStack $requestStack

at line 41
mixed getParameter(string $key, string $default = null)

Returns a parameter from the current request object.

Parameters

string $key The name of the parameter
string $default A default value

Return Value

mixed

See also

Request::get()

at line 51
string getLocale()

Returns the locale.

Return Value

string

at line 68
string getName()

Returns the canonical name of this helper.

Return Value

string The canonical name