add Emailer and EmailFactory interfaces with laravel + fake impls
This commit is contained in:
parent
e16cb45387
commit
2890781a56
6 changed files with 104 additions and 0 deletions
15
backend/app/Email/LaravelEmailFactory.php
Normal file
15
backend/app/Email/LaravelEmailFactory.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Email;
|
||||
|
||||
class LaravelEmailFactory implements EmailFactory
|
||||
{
|
||||
public function __construct(
|
||||
private string $confirmationUrlPrefix,
|
||||
) {}
|
||||
|
||||
public function makeConfirmationEmail(string $token): string
|
||||
{
|
||||
return "Confirm your email: {$this->confirmationUrlPrefix}{$token}";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue