class RequestHelper extends Helper
RequestHelper provides access to the current request parameters.
protected | $charset | from Helper | |
protected | $requestStack |
setCharset(string $charset) Sets the default charset. | from Helper | |
string | getCharset() Gets the default charset. | from Helper |
__construct(RequestStack $requestStack) | ||
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. |
Sets the default charset.
string | $charset | The charset |
Gets the default charset.
string | The default charset |
RequestStack | $requestStack |
Returns a parameter from the current request object.
string | $key | The name of the parameter |
string | $default | A default value |
mixed |
Request::get() |
Returns the locale.
string |
Returns the canonical name of this helper.
string | The canonical name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.html