lexik/LexikMaintenanceBundle — pull request #31 by ProPheT777 (2014-05-23 13:27:04+00:00)
Title: Fix #19 and add test with debug environment of symfony

Fix ticket #19, now the test allow route passed via configTreeBuilder and do not deny.

Other thing, I inject the kernel.debug in order to correctly test the behavior in dev environnement when you restrict with route because some troubles are causes by the WebDebugProfiler component. The ajax request on `_profile` cause bug when you restrict access with some routes, because _profiler is called, and not allowed. In order to fix this i just ignore route starting with ` _ ` when debug is true only (so that allow to have underscored route in production).

BTW I have add test on the route filter logic to avoid regression and be sure it's work.