Flash Message Configuration¶
The flash message listener is a tool to avoid rendering the flash message into the content of a page. It is another building brick for caching pages for logged in users.
# app/config/config.yml
fos_http_cache:
flash_message:
enabled: true
name: flashes
path: /
host: null
secure: false
enabled
¶
type: boolean
default: false
This event subscriber is disabled by default. You can set enabled to true if the default values for all options are good for you. When you configure any of the options, the subscriber is automatically enabled.
name
¶
type: string
default: flashes
Set the name of the cookie.