Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setHashExpired example
$page
=
$this
->genericLoader->
load
(
$request
,
$context
)
;
$page
= AccountRecoverPasswordPage::
createFrom
(
$page
)
;
$page
->
setHash
(
$hash
)
;
$customerHashCriteria
=
new
Criteria
(
)
;
$customerHashCriteria
->
addFilter
(
new
EqualsFilter
(
'hash',
$hash
)
)
;
$customerRecoveryResponse
=
$this
->recoveryIsExpiredRoute
->
load
(
new
RequestDataBag
(
[
'hash' =>
$hash
]
)
,
$context
)
;
$page
->
setHashExpired
(
$customerRecoveryResponse
->
isExpired
(
)
)
;
$this
->eventDispatcher->
dispatch
(
new
AccountRecoverPasswordPageLoadedEvent
(
$page
,
$context
,
$request
)
)
;
return
$page
;
}
}