Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
finishSitemapHandles example
foreach
(
$this
->urlProvider
as
$urlProvider
)
{
do
{
$result
=
$urlProvider
->
getUrls
(
$context
,
$this
->batchSize,
$offset
)
;
$this
->
processSiteMapHandles
(
$result
)
;
$needRun
=
$result
->
getNextOffset
(
)
!== null;
$offset
=
$result
->
getNextOffset
(
)
;
}
while
(
$needRun
)
;
}
$this
->
finishSitemapHandles
(
)
;
}
finally
{
$this
->
unlock
(
$context
)
;
}
$this
->dispatcher->
dispatch
(
new
SitemapGeneratedEvent
(
$context
)
)
;
return
new
SitemapGenerationResult
(
true,
$lastProvider
,
null,
$context
->
getSalesChannel
(
)
->
getId
(
)
,