コード例 #1
0
ファイル: Customer.php プロジェクト: spryker/Customer
 /**
  * @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;
 }