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 |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bundle/FrameworkBundle/Templating/Helper/SessionHelper.html