/**
  * @inheritDoc
  */
 public function collect() : \Iterator
 {
     $generator = function () {
         foreach ($this->repository->findAllIds() as $id) {
             foreach ($this->locales as $locale) {
                 (yield $this->router->generate('product', ['id' => $id, '_locale' => $locale], RouterInterface::ABSOLUTE_URL));
             }
         }
     };
     return $generator();
 }
 /**
  * @inheritDoc
  */
 public function findAllIds()
 {
     return $this->repository->findAllIds();
 }