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