Download the PHP package jeriveromartinez/maintenance-site-bundle without Composer
On this page you can find all versions of the php package jeriveromartinez/maintenance-site-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jeriveromartinez/maintenance-site-bundle
More information about jeriveromartinez/maintenance-site-bundle
Files in jeriveromartinez/maintenance-site-bundle
Download jeriveromartinez/maintenance-site-bundle
More information about jeriveromartinez/maintenance-site-bundle
Files in jeriveromartinez/maintenance-site-bundle
Vendor jeriveromartinez
Package maintenance-site-bundle
Short Description This bundle allows your site in maintenance mode
License MIT
Package maintenance-site-bundle
Short Description This bundle allows your site in maintenance mode
License MIT
Keywords maintenance mode test site offline
Please rate this library. Is it a good library?
Informations about the package maintenance-site-bundle
This bundle allows your site in maintenance mode for public or anonymous users, allowing you to see changes made if your user is allowed between roles
composer require jeriveromartinez/maintenance-site-bundle
...
new J3rm\MaintenanceSiteBundle\J3rmMaintenanceSiteBundle(),
configurations parameter
j3rm_maintenance_site:
path_enable: [/admin,/login]
roles_enable_offline: [ROLE_USER,ROLE_ADMIN]
maintenance: true
Or
j3rm_maintenance_site:
path_enable: [/admin,/login]
roles_enable_offline: [ROLE_USER,ROLE_ADMIN]
database_offline: YourBundle:YourEntity:attributeName (the attribute most be a boolean)
- path_enable - The administration site url which you must include the login page.
- roles_enable_offline - The roles allowed to see the site in development mode.
- maintenance - boolean value to enable or not the maintenance mode.
- database_offline - It is defined where to catch the value for maintenance mode.
####this bundle redirect to offline page, for that add this to routing.yml
app_offline:
resource: "@J3rmMaintenanceSiteBundle/Controller/"
type: annotation
####create a error503.html.twig file into "Resources/TwigBundle/views/Exception/" and add anonymous permission in the firewall
All versions of maintenance-site-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.2
symfony/framework-bundle Version ~2.7
symfony/symfony Version *
doctrine/orm Version *
doctrine/doctrine-bundle Version *
symfony/framework-bundle Version ~2.7
symfony/symfony Version *
doctrine/orm Version *
doctrine/doctrine-bundle Version *
The package jeriveromartinez/maintenance-site-bundle contains the following files
Loading the files please wait ....