Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setAware example
private
TriggerFlowController
$triggerFlowController
;
/** * @var StaticEntityRepository<AppFlowEventCollection> */
private
StaticEntityRepository
$appFlowEventRepository
;
protected
function
setUp
(
)
: void
{
$appFlowEvent
=
new
AppFlowEventEntity
(
)
;
$appFlowEvent
->
setUniqueIdentifier
(
Uuid::
randomHex
(
)
)
;
$appFlowEvent
->
setAware
(
[
'customerId'
]
)
;
$appFlowEvent
->
setName
(
'custom.checkout.event'
)
;
$this
->appFlowEventRepository =
new
StaticEntityRepository
(
[
new
EntitySearchResult
(
'app_flow_event',
1,
new
AppFlowEventCollection
(
[
$appFlowEvent
]
)
,
null,
new
Criteria
(
)
,
Context::
createDefaultContext
(
)
,
)
,
]
)
;