CodeExplorer closeFiles example
while ($urls =
$urlProvider->
getUrls($routerContext,
$shopContext)) { $urls =
$this->urlFilter->
filter($urls,
(int) $shop->
getId());
if (!
$urls) { continue;
} $this->sitemapWriter->
writeFile($shop,
$urls);
} } $this->sitemapWriter->
closeFiles();
$this->configWriter->
save('sitemapLastRefresh',
time());
$this->sitemapLock->
unLock($shop);
}}