CodeExplorer AccountRecoverPasswordPageLoadedEvent example
$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;
}}