November 23, 2015 | No Comments | Programming | PHP Routing Loader Service Symfony2

Custom Route Loader in Symfony 2

Sometimes we want to load different routing file depends on user data or environment variables. Symfony has article in cookbook which explains such functionality but I can share with you how to create Custom Route Loader in Symfony2 with some nuances/pitfalls and working example.