Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
generateDistinguishablePaymentNames example
return
new
PaymentMethodIndexingMessage
(
array_values
(
$updates
)
, null,
$event
->
getContext
(
)
)
;
}
public
function
handle
(
EntityIndexingMessage
$message
)
: void
{
$ids
=
$message
->
getData
(
)
;
if
(
empty
(
$ids
)
)
{
return
;
}
$this
->distinguishableNameGenerator->
generateDistinguishablePaymentNames
(
$message
->
getContext
(
)
)
;
$this
->eventDispatcher->
dispatch
(
new
PaymentMethodIndexerEvent
(
$ids
,
$message
->
getContext
(
)
,
$message
->
getSkip
(
)
)
)
;
}
public
function
getTotal
(
)
: int
{
return
$this
->iteratorFactory->
createIterator
(
$this
->paymentMethodRepository->
getDefinition
(
)
)
->
fetchCount
(
)
;
}
public
function
getDecorated
(
)
: EntityIndexer
{