As suggested in #96. I've not managed to come up with a better name for the option.
This is my first pull request so please tell me if I've missed something.
Added option current_scan_depth to rendererers.
Added documentation for current_scan_depth option.
Renamed current_scan_depth to currentScanDepth.
Please add a test in the abstract renderer test for this option (and you will see that the TwigRenderer is broken as you never decrement the depth)
For the naming, I would suggest matchingDepth
Renamed currentScanDepth to matchingDepth.
Basic tests of matchingDepth option in renderers.
Decrement matchingDepth when rendering menu with Twig.
Ensured that matchingDepth doesn't go below 0.
I changed the name and added some very basic tests of the option.
Added test for when matchingDepth is lower than depth.
Is there something missing? Can this be merged? It seems that this is one of the very big missing features.
Thanks :-) .