class SessionHelper extends Helper
SessionHelper provides read-only access to the session attributes.
| protected | $charset | from Helper | |
| protected | $session | ||
| protected | $requestStack |
| 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. |
Sets the default charset.
| string | $charset | The charset |
Gets the default charset.
| string | The default charset |
| RequestStack | $requestStack |
Returns an attribute.
| string | $name | The attribute name |
| mixed | $default | The default value |
| mixed |
| $name | ||
| array | $default |
| $name |
Returns the canonical name of this helper.
| string | The canonical name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Templating/Helper/SessionHelper.html