axis / axis-module-routing-plugin
symfony 1.x plugin that allows you to define routing configuration at module level.
Installs: 142
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 2
Type:symfony1-plugin
Requires
This package is not auto-updated.
Last update: 2020-08-21 17:49:53 UTC
README
Installation
Composer way
Just add axis/axis-module-routing-plugin
dependency to your composer.json
file:
"require": { "axis/axis-module-routing-plugin": "dev-master" }
Git way
Also you can clone https://github.com/e1himself/axis-module-routing-plugin.git
to plugins/AxisModuleRoutingPlugin
folder in your project.
Usage
You can create module_routing.yml
files within module's config
dir.
All routes defined in module_routing.yml
from enabled modules' config folders will be added to application routing.
Additional options
position
option
You can define position
of a route to tell where it should be added to applicaiton routing: at the end or at the beginning.
The only supported value for now is last
- route will be appended to the end. Otherwise it will be prepended.
Default is to prepend.
Known Issues
module_routing.yml
configuration files in your project's application modules will be not handled unless your explicitly specify module as enabled in your applicaiton'ssettings.yml
.