Ejemplo n.º 1
0
 /**
  * @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
  *
  * @return bool
  */
 protected function sendRegistrationToken(CustomerTransfer $customerTransfer)
 {
     if (!$customerTransfer->getSendPasswordToken()) {
         return false;
     }
     $confirmationLink = $this->customerConfig->getRegisterConfirmTokenUrl($customerTransfer->getRegistrationKey());
     foreach ($this->registrationTokenSender as $sender) {
         $sender->send($customerTransfer->getEmail(), $confirmationLink);
     }
     return true;
 }