STARTlexik_maintenance: authorized: path: /admin # Optional. Authorized path, accepts regexs host: localhost:10443 # Optional. Authorized domain, accepts regexs ips: ['127.0.0.1', '210.171.168.115'] # Optional. Authorized ip addresses query: { foo: bar } # Optional. Authorized request query parameter (GET/POST) cookie: { bar: baz } # Optional. Authorized cookie route: # Optional. Authorized route name attributes: # Optional. Authorized route attributes driver: ttl: 3600 # Optional ttl option, can be not set # File driver class: '\Lexik\Bundle\MaintenanceBundle\Drivers\FileDriver' # class for file driver options: {file_path: '%kernel.root_dir%/../app/cache/lock'} # file_path is the complete path for create the file (Symfony < 3.0) options: {file_path: '%kernel.root_dir%/../var/cache/lock'} # file_path is the complete path for create the file (Symfony >= 3.0) # Shared memory driver class: '\Lexik\Bundle\MaintenanceBundle\Drivers\ShmDriver' # class for shared memory driver # MemCache driver class: Lexik\Bundle\MaintenanceBundle\Drivers\MemCacheDriver # 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: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver' # 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:localhost", table: maintenance, user: root, password: root} # the dsn configuration, name of table, user/password #Optional. response code and status of the maintenance page response: code: 503 status: "Service Temporarily Unavailable"END