Download the PHP package doppy/routing-bundle without Composer
On this page you can find all versions of the php package doppy/routing-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package routing-bundle
Doppy Routing Bundle
A Symfony2/Symfony3 bundle providing some additional routing functionality based on the symfony/cmf-routing.
This bundle only provides easy configuration and not actual code, as the Chain router is provided by symfony/cmf-routing.
Installation
Add to composer
`
Add to AppKernel
`
Write your own router
Implement your own router in your own app somewhere. You will need to use one or more of the following interfaces:
Symfony\Component\Routing\Generator\UrlGeneratorInterface
For generating url's only. Useful if you want to generate url's that go to a completely different site.Symfony\Component\Routing\Matcher\UrlMatcherInterface
For simple matching incoming url's to a controller.Symfony\Component\Routing\Matcher\RequestMatcherInterface
For more complex matching incoming url's to a controller.
See the Symfony documentation (on those interfaces) for more information on generating and matching url's.
Define this as a service as usual, or use autowiring.
Add routers
There are 2 ways to make your own router known, both have the same result.
You should not use both at the same time for the same router, as that would result in your router being added multiple times.
Method 1: configuration
Using the main configuration:
` Where the number is the priority to use.
Method 2: tag
`
Using this method you don't need to add the symfony router in the configuration, as this is done automatically by the tag.
Autotag is not supported,
Default Symfony router
The default symfony router is added by default with priority 100. You can adjust this with by adjusting the configuration in 2 ways:
Disable the default router:
`
Or a different priority:
`
All versions of routing-bundle with dependencies
symfony-cmf/routing Version ^2.0
symfony/framework-bundle Version ^3.0|^4.0