symfony/symfony — pull request #3651 by vicb (2012-03-20 14:49:31+00:00)
Title: [RFC][Routing] fix or trick ?

With this PR

`/foo-{bar}-{baz}` matches `/foo-b/ar-b-az`

I thought I was a great idea when I wrote it, I am not sure any more:

* matching `b/ar` is a BC break, it should probably not be included in 2.0. However I think this is the expected behavior (but it also suffers from the problem? mentioned below)
* matching `b-az` is a new feature (could it be considered as a BC break as such ?)

One issue I can see with matching `b-az` is that it would hide a `/foo-{bar}-{baz}-{buz}` route declared afterwards. However a it would a masked a `/foo-{bar}-{baz}_{buz}` even with the current code. So one "benefit" here is to be consistent.