sampart/WhiteOctoberPagerfantaBundle

PagerfantaExtension problem when using JMSI18nRoute

madc opened this issue · 2 comments

madc commented

I am using WhiteOctoberPagerfantaBundle inside AdmingeneratorGeneratorBundle. When enabling the JMSI18nRouteBundle, it produces the following error:

Fatal error: Call to a member function compile() on a non-object in /Users/me/Projects/Web/htdocs/BikecityGuide/website/vendor/bundles/WhiteOctober/PagerfantaBundle/Twig/PagerfantaExtension.php on line 74

Must have something to do with the prefix of the I18n route, but I could not figure it out.
de__RG__Bcg_AdminBundle_User_list ANY /de/admin/user/
en__RG__Bcg_AdminBundle_User_delete ANY /admin/user/{pk}/delete

I am on branch symfony2.0.

stof commented

This is a known issue in Symfony 2.0, which does not provide a clean way to retrieve the parameters found during the matching. This works well in the master branch targeting Symfony 2.1 as it uses the new feature added for this instead of hacking things by reloading the routes (which kill performances) and recompiling the needed route

madc commented

Thanks for pointing that out. Means i will wait for 2.1 to be stable and work around this issue meanwhile.