/** * Sends the reset instructions to client * * @param ClientInterface $client * * @return int */ protected function sendResetInstructions(ClientInterface $client) { $email = $client->getContactDetails()->getEmail(); $title = $this->getTranslatorHelper()->trans('client.email.title.reset_password'); $body = $this->getTemplatingelper()->render('WellCommerceClientBundle:Email:reset_password.html.twig', ['client' => $client]); $shop = $client->getShop(); return $this->getMailerHelper()->sendEmail($email, $title, $body, $shop->getMailerConfiguration()); }
/** * Sends the reset instructions to client * * @param ClientInterface $client * * @return int */ protected function sendResetInstructions(ClientInterface $client) : int { return $this->getMailerHelper()->sendEmail(['recipient' => $client->getContactDetails()->getEmail(), 'subject' => $this->getTranslatorHelper()->trans('client.email.heading.reset_password'), 'template' => 'WellCommerceAppBundle:Email:reset_password.html.twig', 'parameters' => ['client' => $client], 'configuration' => $client->getShop()]); }