class SessionHelper extends Helper

SessionHelper provides read-only access to the session attributes.

Properties

protected $charset from Helper
protected $session
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
get(string $name, mixed $default = null)

Returns an attribute.

getFlash($name, array $default = [])

No description

getFlashes()

No description

hasFlash($name)

No description

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 27
__construct(RequestStack $requestStack)

Parameters

RequestStack $requestStack

at line 40
mixed get(string $name, mixed $default = null)

Returns an attribute.

Parameters

string $name The attribute name
mixed $default The default value

Return Value

mixed

at line 45
getFlash($name, array $default = [])

Parameters

$name
array $default

at line 50
getFlashes()

at line 55
hasFlash($name)

Parameters

$name

at line 76
string getName()

Returns the canonical name of this helper.

Return Value

string The canonical name