Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
SitemapGeneratedEvent example
$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
(
)
,
$context
->
getLanguageId
(
)
)
;
}
private
function
lock
(
SalesChannelContext
$salesChannelContext
, bool
$force
)
: void
{