$systemConfig->
set('core.loginRegistration.doubleOptInRegistration', true
);
$systemConfig->
set('core.loginRegistration.confirmationUrl', '/confirm/custom/%%HASHEDEMAIL%%/%%SUBSCRIBEHASH%%'
);
/** @var EventDispatcherInterface $dispatcher */
$dispatcher =
$this->
getContainer()->
get('event_dispatcher'
);
$this->
addEventListener( $dispatcher,
CustomerConfirmRegisterUrlEvent::
class,
static function DCustomerConfirmRegisterUrlEvent
$event): void
{ $event->
setConfirmUrl($event->
getConfirmUrl());
} );
$caughtEvent = null;
$this->
addEventListener( $dispatcher,
CustomerDoubleOptInRegistrationEvent::
class,
static function DCustomerDoubleOptInRegistrationEvent
$event) use (&
$caughtEvent): void
{ $caughtEvent =
$event;
} );