symfony-cmf/RoutingExtraBundle — pull request #69 by dantleech (2013-02-19 18:54:02+00:00)
Title: [WIP] For automatic routing

This my attempt at porting the functionality from @sjopet s work. I am slowly getting my head around all the requirements, some things that are different:

- Fully powered by mapping, no Interface (other than standard CMF RoutingAware for getting existing routes). (not sure about this for the subscriber performance)
- I am planning to separate the creation of redirect routes from the creation of automatic routes, this may well already be the case, but anyway, I'm thinking to listen to both Route updates and mapped routable document updates.
- The service `AutoRouteManager` is rougly analagous to (netvlies) `RouteService`, but infact can be used to update auto-routes independently of any Doctrine subscriber.
- PrimaryRoute renamed to Permalink - is that correct?
- Added new "feature", you can map a property which contains parent routes, e.g. for a blog post, the parent routes would be the routes of the Blog.
- This system works with multiple routes, I think the netvlies system only works with one. I *think* the advantage here is that it works with I18N.

Most of my work today has been on the AutoRouteManager, interesting points indicated by @TODO's and @NOTE's.

One interesting possiblity that comes with the Mapping stuff is that we could allow users to specify Controllers and Templates with mapping in addition to `config.yml` (`controllers_by_class` etc)