Templating\Helper\SessionHelper (Bundle\FrameworkBundle)
Symfony\Bundle\FrameworkBundle\Templating\Helper\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
public setCharset(string $charset)
Sets the default charset.
public string getCharset()
Gets the default charset.
public __construct(RequestStack $requestStack)
public mixed get(string $name, mixed $default = null)
Returns an attribute.
public getFlash($name, array $default = array())
public getFlashes()
public hasFlash($name)
public string getName()
Returns the canonical name of this helper.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bundle/FrameworkBundle/Templating/Helper/SessionHelper.html