Advertisement
Guest User

Untitled

a guest
Oct 16th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. lexik_maintenance:
  2. driver:
  3. #ttl: 3600 # Optional ttl option, can be not set
  4.  
  5. # File driver
  6. class: 'LexikBundleMaintenanceBundleDriversFileDriver' # class for file driver
  7. options: {file_path: %kernel.root_dir%/cache/lock} # file_path is the complete path for create the file
  8.  
  9. # Shared memory driver
  10. class: 'LexikBundleMaintenanceBundleDriversShmDriver' # class for shared memory driver
  11.  
  12. # MemCache driver
  13. class: LexikBundleMaintenanceBundleDriversMemCacheDriver # class for MemCache driver
  14. options: {key_name: 'maintenance', host: 127.0.0.1, port: 11211} # need to define a key_name, the host and port
  15.  
  16. # Database driver:
  17. class: 'LexikBundleMaintenanceBundleDriversDatabaseDriver' # class for database driver
  18.  
  19. # Option 1 : for doctrine
  20. options: {connection: custom} # Optional. You can choice an other connection. Without option it's the doctrine default connection who will be used
  21.  
  22. # Option 2 : for dsn, you must have a column ttl type datetime in your table.
  23. options: {dsn: "mysql:dbname=maintenance;host:%database_host%", table: maintenance, user: %database_user%, password: %database_password%} # the dsn configuration, name of table, user/password
  24.  
  25. response:
  26. code: 503
  27. status: "Service Temporarily Unavailable"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement