Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lexik_maintenance:
- driver:
- #ttl: 3600 # Optional ttl option, can be not set
- # File driver
- class: 'LexikBundleMaintenanceBundleDriversFileDriver' # class for file driver
- options: {file_path: %kernel.root_dir%/cache/lock} # file_path is the complete path for create the file
- # Shared memory driver
- class: 'LexikBundleMaintenanceBundleDriversShmDriver' # class for shared memory driver
- # MemCache driver
- class: LexikBundleMaintenanceBundleDriversMemCacheDriver # class for MemCache driver
- options: {key_name: 'maintenance', host: 127.0.0.1, port: 11211} # need to define a key_name, the host and port
- # Database driver:
- class: 'LexikBundleMaintenanceBundleDriversDatabaseDriver' # class for database driver
- # Option 1 : for doctrine
- options: {connection: custom} # Optional. You can choice an other connection. Without option it's the doctrine default connection who will be used
- # Option 2 : for dsn, you must have a column ttl type datetime in your table.
- options: {dsn: "mysql:dbname=maintenance;host:%database_host%", table: maintenance, user: %database_user%, password: %database_password%} # the dsn configuration, name of table, user/password
- response:
- code: 503
- status: "Service Temporarily Unavailable"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement