Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
swapAlias example
$this
->
__invoke
(
new
AdminSearchIndexingMessage
(
$indexer
->
getEntity
(
)
,
$indexer
->
getName
(
)
,
$indices
,
$ids
)
)
;
}
else
{
$this
->queue->
dispatch
(
new
AdminSearchIndexingMessage
(
$indexer
->
getEntity
(
)
,
$indexer
->
getName
(
)
,
$indices
,
$ids
)
)
;
}
$this
->dispatcher->
dispatch
(
new
ProgressAdvancedEvent
(
\
count
(
$ids
)
)
)
;
}
$this
->dispatcher->
dispatch
(
new
ProgressFinishedEvent
(
$indexer
->
getName
(
)
)
)
;
}
$this
->
swapAlias
(
$indices
)
;
}
public
function
refresh
(
EntityWrittenContainerEvent
$event
)
: void
{
if
(
!
$this
->adminEsHelper->
getEnabled
(
)
|| !
$this
->
isIndexedEntityWritten
(
$event
)
)
{
return
;
}
if
(
$this
->adminEsHelper->
getRefreshIndices
(
)
)
{
$this
->
refreshIndices
(
)
;
}