FileAccess Orion

RequestHelper extends Helper
in package

RequestHelper provides access to the current request parameters.

Tags
author

Fabien Potencier fabien@symfony.com

deprecated

since version 4.3, to be removed in 5.0; use Twig instead.

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

Methods

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
see
Request::get()
Return values
mixed

Search results