SessionHelper

class SessionHelper extends Helper

SessionHelper provides read-only access to the session attributes.

Methods

setCharset(string $charset)

Sets the default charset.

from Helper
string getCharset()

Gets the default charset.

from Helper
__construct(RequestStack $requestStack)
mixed get(string $name, mixed $default = null)

Returns an attribute.

getFlash($name, array $default = array())
getFlashes()
hasFlash($name)
string getName()

Returns the canonical name of this helper.

Details

setCharset(string $charset)

Sets the default charset.

Parameters

string $charset The charset

string getCharset()

Gets the default charset.

Return Value

string The default charset

__construct(RequestStack $requestStack)

Parameters

RequestStack $requestStack

mixed get(string $name, mixed $default = null)

Returns an attribute.

Parameters

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

Return Value

mixed

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

Parameters

$name
array $default

getFlashes()

hasFlash($name)

Parameters

$name

string getName()

Returns the canonical name of this helper.

Return Value

string The canonical name
doc_Symfony
2016-10-28 06:32:18
Comments
Leave a Comment

Please login to continue.