symfony/Routing - import yml resource twice -


i'm trying enable optional locale placeholder routes without duplicating everything. routes this:

site:     prefix: /     resource: "routes-site.yml"  site_i18n:     prefix: /{_locale}     resource: "routes-site.yml"     defaults: {_locale: pl}     requirements:         _locale: 'en' 

but site_i18n working. why cannot import same resource multiple times? it's symfony 2.2

because routes have same route name, later import overrides routes first one. have at: besimplei18nroutingbundle. allows localize whole path, in case, need localize prefix.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -