A symfony website can be displayed as unavailable:
- When an application has been disable by
php symfony project:disable
- During the cache clearing, if the
check_lock
option is checked in settings.yml
In these cases, symfony looks for a unavailable.php
file and let you choose where you prefer to put it:
At mySfProject/apps/frontend/config/unavailable.php
Useful if you want to have a different version for each application
In mySfProject/config/unavailable.php
The main configuration folder of your project
If you want, you can grab the original file and modify it.
Don't forget to clear your cache.
Display the "Website Temporarily Unavailable" page to test it
Disable your frontend in dev environement.
php symfony project:disable frontend dev