Motoblouz case study - multi-sites & routing
summary
A MultiSite bundle on GitHub provides multisite and multilanguage support by modeling brands and a SiteContext, resolving a configuration cascade at container build, and injecting that into Symfony routing and templating. The implementation extends Symfony2 routing (inspired by JMSI18nRouting), adds a compiler pass, a custom annotation loader, and a Twig multiloader to prefer brand/locale templates; routes and per-site templates are internationalized and covered by unit and functional tests.
AI-written summary · about
