Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
iterateIndexer example
if
(
$message
instanceof EntityIndexingMessage
)
{
$indexer
=
$this
->
getIndexer
(
$message
->
getIndexer
(
)
)
;
if
(
$indexer
)
{
$indexer
->
handle
(
$message
)
;
}
return
;
}
if
(
$message
instanceof IterateEntityIndexerMessage
)
{
$next
=
$this
->
iterateIndexer
(
$message
->
getIndexer
(
)
,
$message
->
getOffset
(
)
, true,
$message
->
getSkip
(
)
)
;
if
(
!
$next
)
{
return
;
}
$this
->messageBus->
dispatch
(
new
IterateEntityIndexerMessage
(
$message
->
getIndexer
(
)
,
$next
->
getOffset
(
)
,
$message
->
getSkip
(
)
)
)
;
}
}
/** * @param list<string> $skip * @param list<string> $only */