Method |
Description |
|
__construct ( Symfony\Component\HttpFoundation\SessionStorage\SessionStorageInterface $storage, string $defaultLocale = 'en' ) |
Constructor. |
|
__destruct ( ) |
|
|
all ( ) : array |
Returns attributes. |
|
clear ( ) |
Clears all attributes. |
|
clearFlashes ( ) |
Removes the flash messages. |
|
get ( string $name, mixed $default = null ) : mixed |
Returns an attribute. |
|
getAttributes ( ) : array |
Returns attributes. |
|
getFlash ( string $name, string | null $default = null ) : string |
Gets a flash message. |
|
getFlashes ( ) : array |
Gets the flash messages. |
|
getId ( ) : mixed |
Returns the session ID |
|
getLocale ( ) : string |
Returns the locale |
|
has ( string $name ) : boolean |
Checks if an attribute is defined. |
|
hasFlash ( string $name ) : boolean |
Checks whether a flash message exists. |
|
invalidate ( ) |
Invalidates the current session. |
|
migrate ( ) |
Migrates the current session to a new session id while maintaining all
session attributes. |
|
remove ( string $name ) |
Removes an attribute. |
|
removeFlash ( string $name ) |
Removes a flash message. |
|
replace ( array $attributes ) |
Sets attributes. |
|
save ( ) |
|
|
serialize ( ) |
|
|
set ( string $name, mixed $value ) |
Sets an attribute. |
|
setAttributes ( array $attributes ) |
Sets attributes. |
|
setFlash ( string $name, string $value ) |
Sets a flash message. |
|
setFlashes ( array $values ) |
Sets the flash messages. |
|
setLocale ( string $locale ) |
Sets the locale. |
|
start ( ) |
Starts the session storage. |
|
unserialize ( $serialized ) |
|
|