Download the PHP package grizzlylab/deny-routes-by-env-bundle without Composer
On this page you can find all versions of the php package grizzlylab/deny-routes-by-env-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grizzlylab/deny-routes-by-env-bundle
More information about grizzlylab/deny-routes-by-env-bundle
Files in grizzlylab/deny-routes-by-env-bundle
Package deny-routes-by-env-bundle
Short Description Deny routes for one or several environments
License MIT
Homepage https://github.com/grizzlylab/deny-routes-by-env-bundle
Informations about the package deny-routes-by-env-bundle
DenyRoutesByEnvBundle
This bundle for Symfony allows you to deny some routes for a specific environment. When a route is denied, it will create a flash message and redirect the user to the "redirection route".
Example: You don't want your users to be able to access the route "acme_xyz" when the environment is "dev" or "demo".
1. Installation
- in AppKernel.php:
2. Configuration
a) Configure your main configuration file (app/config/config.yml):
b) Then configure each config file related to the concerned environments (e.g. app/config/config_dev.yml)
License
This bundle is under the MIT license.
All versions of deny-routes-by-env-bundle with dependencies
symfony/routing Version ^4.4|^5.2
symfony/translation Version ^4.4|^5.2
symfony/framework-bundle Version ^4.4|^5.2
php Version ^7.4 || ^8.0