vesax / maintenance-bundle
Installs: 27 330
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- symfony/console: ~2.6
- symfony/symfony: ~2.6
This package is not auto-updated.
Last update: 2020-10-16 21:18:38 UTC
README
Installation
# Bash
composer require vesax/maintenance-bundle dev-master
# AppKernel.php
if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
$bundles[] = new Vesax\MaintenanceBundle\VesaxMaintenanceBundle();
}
Configuration (optional)
vesax_maintenance:
allowed_clients:
- "127.0.0.1"
Usage Examples
php app/console app:disable
php app/console app:disable --start="02:00"
php app/console app:disable --start="2016-03-03 02:00"
php app/console app:disable --start="2016-03-03 02:00" --end="06:00"
php app/console app:disable --add-clients
php app/console app:disable --no-interactive
php app/console app:enable