Templating\Helper\RequestHelper (Bundle\FrameworkBundle)
Symfony\Bundle\FrameworkBundle\Templating\Helper\RequestHelper
class RequestHelper extends Helper
RequestHelper provides access to the current request parameters.
Methods
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. |
Details
public setCharset(string $charset)
Sets the default charset.
public string getCharset()
Gets the default charset.
public __construct(RequestStack $requestStack)
public mixed getParameter(string $key, string $default = null)
Returns a parameter from the current request object.
public string getLocale()
Returns the locale.
public string getName()
Returns the canonical name of this helper.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.html