Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
RuleIndexerEvent example
return
;
}
if
(
$message
->
allow
(
self::PAYLOAD_UPDATER
)
)
{
$this
->payloadUpdater->
update
(
$ids
)
;
}
if
(
$message
->
allow
(
self::AREA_UPDATER
)
)
{
$this
->areaUpdater->
update
(
$ids
)
;
}
$this
->eventDispatcher->
dispatch
(
new
RuleIndexerEvent
(
$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
)
;
}
}