__construct() __construct(string $storageKey = '_symfony_flashes') : mixed Parameters string $storageKey The key used to store flashes in the session Returns mixed —
initialize() initialize(array $flashes) : mixed {@inheritdoc} Parameters array $flashes Returns mixed —
add() add(string $type, mixed $message) : mixed Adds a flash message for the given type. Parameters string $type mixed $message Returns mixed —
peek() peek(string $type, array $default = []) : array Gets flash messages for a given type. Parameters string $type Message category type array $default Default value if $type does not exist Returns array —
get() get(string $type, array $default = []) : array Gets and clears flash from the stack. Parameters string $type array $default Default value if $type does not exist Returns array —
setAll() setAll(array $messages) : mixed Sets all flash messages. Parameters array $messages Returns mixed —
set() set(string $type, mixed $messages) : mixed Registers one or more messages for a given type. Parameters string $type mixed $messages Returns mixed —
has() has(string $type) : bool Has flash messages for a given type? Parameters string $type Returns bool —