mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
flasher:
|
|
# Default notification library (e.g., 'flasher', 'toastr', 'noty', etc.)
|
|
# themes: flasher, crystal, emerald, sapphire
|
|
default: theme.minimal
|
|
|
|
# Path to the main JavaScript file of PHPFlasher
|
|
main_script: '/vendor/flasher/flasher.min.js'
|
|
|
|
# Path to the stylesheets for PHPFlasher notifications
|
|
styles:
|
|
- '/vendor/flasher/flasher.min.css'
|
|
|
|
# Enable translation of PHPFlasher messages using Symfony's translator service
|
|
translate: true
|
|
|
|
# Automatically inject PHPFlasher assets in HTML response
|
|
inject_assets: true
|
|
|
|
# Global options
|
|
options:
|
|
# timeout in milliseconds
|
|
timeout: 600000
|
|
position: 'top-right'
|
|
|
|
# Map Symfony session keys to PHPFlasher notification types
|
|
flash_bag:
|
|
success: ['success']
|
|
error: ['error', 'danger']
|
|
warning: ['warning', 'alarm']
|
|
info: ['info', 'notice', 'alert']
|
|
|
|
# Criteria to filter displayed notifications (limit, types)
|
|
filter:
|
|
# Limit number of displayed notifications
|
|
# limit: 5
|
|
|
|
themes:
|
|
amazon:
|
|
scripts:
|
|
- '/vendor/flasher/themes/amazon/amazon.min.js'
|
|
styles:
|
|
- '/vendor/flasher/flasher.min.css'
|
|
- '/vendor/flasher/themes/amazon/amazon.min.css'
|
|
options:
|
|
position: 'bottom-right'
|
|
timeout: 6000
|