RequestHelper
extends Helper
in package
RequestHelper provides access to the current request parameters.
Tags
Table of Contents
- $requestStack : mixed
- __construct() : mixed
- getLocale() : string
- Returns the locale.
- getName() : mixed
- {@inheritdoc}
- getParameter() : mixed
- Returns a parameter from the current request object.
- getRequest() : Request
Properties
$requestStack
protected
mixed
$requestStack
Methods
__construct()
public
__construct(RequestStack $requestStack) : mixed
Parameters
- $requestStack : RequestStack
Return values
mixed —getLocale()
Returns the locale.
public
getLocale() : string
Return values
string —getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —getParameter()
Returns a parameter from the current request object.
public
getParameter(string $key[, string $default = null ]) : mixed
Parameters
- $key : string
-
The name of the parameter
- $default : string = null
-
A default value
Tags
Return values
mixed —getRequest()
private
getRequest() : Request