migrations/Version20240301101106.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use App\Constants\MailEventConstants;
  5. use Doctrine\DBAL\Schema\Schema;
  6. use Doctrine\Migrations\AbstractMigration;
  7. /**
  8.  * Auto-generated Migration: Please modify to your needs!
  9.  */
  10. final class Version20240301101106 extends AbstractMigration
  11. {
  12.     public function getDescription(): string
  13.     {
  14.         return '';
  15.     }
  16.     public function up(Schema $schema): void
  17.     {
  18.         $body "<table>
  19.     <tbody>
  20.         <tr>
  21.             <td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 24px; line-height: 26px; color: #1B2028;\">
  22.             <h1 style=\"margin: 0 0 10px 0; font-family:\'Noto Sans\', sans-serif; font-size: 24px; line-height: 26px; color: #1B2028; font-weight: bold;\">Відновлення паролю</h1>
  23.             </td>
  24.         </tr>
  25.         <tr>
  26.             <td style=\"padding: 20px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;\"><img alt=\"\" height=\"100%\" src=\"{http_host}/build/images/Code.png\" width=\"100%\" /></td>
  27.         </tr>
  28.         <tr>
  29.             <td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #1B2028;\">
  30.             <p style=\"margin: 0 0 10px 0;\">Ми отримали запит щодо&nbsp;відновлення&nbsp;вашого&nbsp;паролю.</p>
  31.             </td>
  32.         </tr>
  33.         <tr>
  34.             <td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #1B2028;\">
  35.             <p style=\"margin: 0 0 10px 0;\">Ви можете отримати новий пароль, якщо перейдете за посиланням нижче або скопіюєте та вставите цей лінк в пошукову стрічку вашого браузера: <span style=\"text-wrap: balance; color: #C6252A\">{reset_password_link}</span></p>
  36.             </td>
  37.         </tr>
  38.         <tr>
  39.             <td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #5B5B5B;\">
  40.             <p style=\"margin: 0 0 10px 0;\">Ця форма для&nbsp;відновлення&nbsp;паролю&nbsp;може бути використана лише один раз через 5 хвилин буде недійсною.&nbsp;</p>
  41.             </td>
  42.         </tr>
  43.         <tr>
  44.             <td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #1B2028;\">
  45.             <div><img alt=\"\" height=\"36px\" src=\"{http_host}/build/images/warning.png\" style=\"width: 36px; height: 36px; margin-right: 10px; float: left\" width=\"36px\" />
  46.             <p style=\"margin-bottom: 0; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #909299;\">Якщо ви не намагалися ввійти чи створити обліковий запис на eSIM АТБ, можете сміливо ігнорувати цей електронний лист.</p>
  47.             </div>
  48.             </td>
  49.         </tr>
  50.     </tbody>
  51. </table>
  52.     ";
  53.         $this->addSql("UPDATE mail_template SET body = '{$body}' WHERE event = ".MailEventConstants::PASSWORD_RESET_LINK);
  54.     }
  55.     public function down(Schema $schema): void
  56.     {
  57.         // this down() migration is auto-generated, please modify it to your needs
  58.     }
  59. }