-
Notifications
You must be signed in to change notification settings - Fork 17
Soft Lock
Walter Dal Mut edited this page Apr 27, 2014
·
1 revision
The soft lock interacts at the Symfony2 kernel.request
event with a priority of 255
that should be the max priority. The listener stop the event propagation in case of lock and replies with the maintenance page.
The command is very simple:
app/console corley:maintenance:soft-lock on/off
You can configure a list of allowed paths and a list of IP addresses in order to exclude the soft lock mode during the maintenance.
corley_maintenance:
whitelist:
paths:
- ^/_
- ^/admin
ips:
- 127.0.0.1
The previous configuration allows any connections from 127.0.0.1
and allows to all users to visit any pages that start with: /_
or /admin