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
Post a Comment