braincrafted/bootstrap-bundle — pull request #30 by 1ukaz (2013-03-22 01:40:04+00:00)
Title: Modified the Menu Template to NOT need the Matcher Object

Since the Matcher Object is not present in the Stable Version of
KnpMenuBundle, I adapted the Template to render the menu as in
KnpMenuBundle, without using the Matcher. The current item of the Menu
must be set on the Menu Builder.

This is done by adding to your Menu Builder the following line at the creation method:

``` $menu->setCurrentUri($this->container->get('request')->getRequestUri()); ```

That way, the Matcher is no longer needed. Besides, this is the way to set the current Menu item on the last stable version of KnpMenuBundle.

Maybe you could create a specific TAG describing the solved Issue. Me and a couple of guys will be very grateful of that.

I had some time today, to research over this, and without beeing an expert on KnpMenuBundle, nor even Symfony; I came out with this solution that worked for me. Not sure if it will work on every single Menu scenario, but we can give it a try.

Thanks for the great job !!