KnpLabs/KnpMenu — pull request #49 by stof (2012-04-20 23:27:08+00:00)
Title: Current matching

This is a rewrite of the matching logic by moving it to a separate matcher as discussed in #2.

The bundle is not updated yet for these changes but it will of course be updated before merging (but I need some sleep now). However, the Silex provider is updated, and it even has tests now so you can look at them and play with them.

The library provides 2 built-in voters currently: the basic UriVoter which allows to have the same behavior than previously (i.e. an exact match on the uri) and the RouteVoter which gets the current route from the Request and matches it against routes stored in the ``routes`` extra of the item (either a string or an array of strings).

Please provide any feedback on this