- //XXX: router, slugger, translator and languages arguments will be ignored by default
- return new $repositoryClass($entityManager, $metadata, $this->router, $this->slugger, $this->translator, $this->languages);
+ //XXX: router, slugger, translator, languages and locale arguments will be ignored by default
+ return new $repositoryClass($entityManager, $metadata, $this->router, $this->slugger, $this->translator, $this->languages, $this->locale);