Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
UserRecoveryDefinition example
$recoveryEntity
->
setUniqueIdentifier
(
Uuid::
randomHex
(
)
)
;
/** @var StaticEntityRepository<UserCollection> $userRepository */
$userRepository
=
new
StaticEntityRepository
(
[
new
UserCollection
(
[
]
)
,
]
,
new
UserDefinition
(
)
)
;
/** @var StaticEntityRepository<UserRecoveryCollection> $recoveryRepository */
$recoveryRepository
=
new
StaticEntityRepository
(
[
new
UserRecoveryCollection
(
[
$recoveryEntity
]
)
,
new
UserRecoveryCollection
(
[
$recoveryEntity
]
)
,
]
,
new
UserRecoveryDefinition
(
)
)
;
/** @var StaticEntityRepository<SalesChannelCollection> $salesChannelRepository */
$salesChannelRepository
=
new
StaticEntityRepository
(
[
new
SalesChannelCollection
(
[
]
)
,
]
,
new
SalesChannelDefinition
(
)
)
;
$this
->dispatcher
->
expects
(
static
::
never
(
)
)
->
method
(
'dispatch'
)
;
$service
=
new
UserRecoveryService
(