StofDoctrineExtensionsBundle icon indicating copy to clipboard operation
StofDoctrineExtensionsBundle copied to clipboard

default_locale in SluggableListener

Open farconada opened this issue 12 years ago • 0 comments

Hello

I'm trying to write a new slug transliterator that removes stopwords from the url. Stop words depends on language configuration, so I need to get the default locale at least. How could I get a custom parameter in my SluggableListener (it extends from\Gedmo\Sluggable\SluggableListener) Should the \Gedmo\Sluggable\SluggableListener have a setDefaultLocale() ? stof_doctrine_extensions.default_locale already exists but it is only used with Translatable

farconada avatar Oct 12 '12 18:10 farconada