Skip to content

Instantly share code, notes, and snippets.

@enricofoltran
Created April 3, 2013 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enricofoltran/5302458 to your computer and use it in GitHub Desktop.
Save enricofoltran/5302458 to your computer and use it in GitHub Desktop.
Symfony locale listener configuration
parameters:
acme_i18n.listener.locale_listener.class: Acme\Bundle\I18nBundle\EventListener\LocaleListener
services:
acme_i18n.listener.locale_listener:
class: %acme_i18n.listener.locale_listener.class%
arguments: [ @service_container, "%locales%" ]
tags:
- { name: kernel.event_listener, event: kernel.request, method: onKernelRequest, priority: -255 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment