AutoExpireFlashBag
class AutoExpireFlashBag implements FlashBagInterface
AutoExpireFlashBag flash message container.
Methods
__construct(string $storageKey = '_symfony_flashes')
No description
string
getName()
Gets this bag's name.
setName($name)
No description
initialize(array $flashes)
Initializes the Bag.
add(string $type, mixed $message)
Adds a flash message for type.
array
peek(string $type, array $default = array())
Gets flash messages for a given type.
array
peekAll()
Gets all flash messages.
array
get(string $type, array $default = array())
Gets and clears flash from the stack.
array
all()
Gets and clears flashes from the stack.
setAll(array $messages)
Sets all flash messages.
set(string $type, $messages)
Registers a message for a given type.
bool
has(string $type)
Has flash messages for a given type?
array
keys()
Returns a list of all defined types.
string
getStorageKey()
Gets the storage key for this bag.
mixed
clear()
Clears out data from bag.