symfony-cmf / routing-extra-bundle
Symfony RoutingExtraBundle
Installs: 36 435
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 3
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony-cmf/routing: >=1.0.0-beta1,<1.1-dev
- symfony/framework-bundle: >=2.1.7,<2.3-dev
- symfony/monolog-bundle: >=2.1,<2.3-dev
Requires (Dev)
- doctrine/doctrine-bundle: 1.*
- doctrine/phpcr-bundle: 1.0.*
- doctrine/phpcr-odm: 1.0.*
- jackalope/jackalope-doctrine-dbal: 1.0.*
- symfony/class-loader: >=2.1,<2.3-dev
- symfony/finder: >=2.1,<2.3-dev
- symfony/form: >=2.1,<2.3-dev
- symfony/yaml: >=2.1,<2.3-dev
Suggests
- doctrine/phpcr-bundle: To enable support for the PHPCR ODM documents
- doctrine/phpcr-odm: To enable support for the PHPCR ODM documents
- sonata-project/doctrine-phpcr-admin-bundle: To provide an admin interface for the PHPCR ODM documents
- symfony-cmf/content-bundle: To optionally use the configured value for 'content_basepath' from the CoreBundle
This package is not auto-updated.
Last update: 2022-02-01 12:20:32 UTC
README
This bundle has been renamed to SymfonyCmfRoutingBundle. Use this old version for Symfony 2.1 projects.
Symfony CMF Routing Extra Bundle
This bundle enables the CMF Routing component as Symfony2 bundle. It provides route documents for Doctrine PHPCR-ODM and a controller for redirection routes.
The chain router is meant to replace the default Symfonys Router. All it does is collect a prioritized list of routers and try to match requests and generate urls with all of them. One of the routers in that chain can of course be the default router so you can still use the standard way for some of your routes.
Additionally, this bundle delivers useful router implementations. Currently, there is the DynamicRouter that routes based on a implemented provider that provide Symfony2 Route objects. The provider can be implemented using a database, for example with Doctrine PHPCR-ODM or Doctrine ORM. The bundle provides a default implementation for Doctrine PHPCR-ODM.
The DynamicRouter service is only made available when explicitly enabled in the application configuration.
See the official documentation
Installation
Add a requirement for symfony-cmf/routing-extra-bundle
1.0.0 to your
composer.json and instantiate the bundle in your AppKernel.php
new Symfony\Cmf\Bundle\RoutingExtraBundle\SymfonyCmfRoutingExtraBundle()
If you just want to use the chain router, this is enough. For the DynamicRouter you need something to build a route provider. This bundle provides classes for Doctrine PHPCR ODM.
Authors
- Filippo De Santis (p16)
- Henrik Bjornskov (henrikbjorn)
- Claudio Beatrice (omissis)
- Lukas Kahwe Smith (lsmith77)
- David Buchmann (dbu)
- Uwe Jäger (uwej711)
- And others