PHP code example of bretrzaun / maintenance-bundle
1. Go to this page and download the library: Download bretrzaun/maintenance-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bretrzaun / maintenance-bundle example snippets
\BretRZaun\MaintenanceBundle\MaintenanceBundle::class => ['all' => true]
yaml
# config/packages/maintenance.yaml
maintenance:
enabled: false
template: 'maintenance.html.twig'
#from: 01.12.2018 00:00:01
#until: 03.12.2018 00:00:01
allowed_ip: ['10.*.*.*']