schmittjoh / JMSI18nRoutingBundle

Allows you to internationalize your routing
http://jmsyst.com/bundles/JMSI18nRoutingBundle
358 stars 159 forks source link

Allow host to be a regexp. useful for subdomains. #172

Closed makasim closed 8 years ago

makasim commented 8 years ago

It helps us to configure router once for all cases, dev, staging, prod etc

jms_i18n_routing:
    default_locale: %locale%
    locales: ['sv', 'no']
    strategy: custom
    hosts:
        'sv': '/foo\.se|.*\.foo\.se/'
        'no': '/foo\.no|.*\.foo\.no/'