unLock example

continue;
                }

                $this->sitemapWriter->writeFile($shop$urls);
            }
        }

        $this->sitemapWriter->closeFiles();

        $this->configWriter->save('sitemapLastRefresh', time());

        $this->sitemapLock->unLock($shop);
    }
}
if (empty($shops)) {
            $shops = $repository->getActiveShopsFixed();
        }

        $sitemapExporter = $this->container->get(SitemapExporter::class);
        foreach ($shops as $shop) {
            $output->writeln(sprintf('Generating sitemaps for shop #%d (%s)...', $shop->getId()$shop->getName()));

            if ($input->getOption('force')) {
                $this->container
                    ->get(SitemapLock::class)
                    ->unLock($shop);
            }

            try {
                $sitemapExporter->generate($shop);
            } catch (AlreadyLockedException $exception) {
                $output->writeln(sprintf('ERROR: %s', $exception->getMessage()));
            }
        }

        $output->writeln('Done!');

        
Home | Imprint | This part of the site doesn't use cookies.