symfony-cmf/RoutingExtraBundle — pull request #32 by dbu (2012-11-18 10:45:01+00:00)
Title: support hostnamePattern, have default locale for CLI / test situation

BC break: Routes now have a new field hostnamePattern.

with symfony 2.1 this will do nothing afaik, but 2.2 will use it to do multihost-routing. if we do not handle this, we return null as hostnamePattern which fails the route compiler as it checks '' !== pattern and null is not exactly an empty string.

some future work could be:

* support a route tree where we get the hostname from a tree element, allowing to use a route tree per host handled by this site
* figure a way how we actually set the default route when in CLI mode. right now we will get random locales when we have separate routes per locale