Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
ProductStreamIndexerEvent example
catch
(
InvalidFilterQueryException|SearchRequestException
)
{
$invalid
= true;
}
finally
{
$update
->
execute
(
[
'serialized' =>
$serialized
,
'invalid' =>
(int)
$invalid
,
'id' => Uuid::
fromHexToBytes
(
$id
)
,
]
)
;
}
}
$this
->eventDispatcher->
dispatch
(
new
ProductStreamIndexerEvent
(
$ids
,
$message
->
getContext
(
)
,
$message
->
getSkip
(
)
)
)
;
}
public
function
getTotal
(
)
: int
{
return
$this
->iteratorFactory->
createIterator
(
$this
->repository->
getDefinition
(
)
)
->
fetchCount
(
)
;
}
public
function
getDecorated
(
)
: EntityIndexer
{
throw
new
DecorationPatternException
(
static
::
class
)
;
}