Feat: Pending Email Change Updates, Moving Mailables to core

This commit is contained in:
2026-09-25 15:37:18 +03:00
parent 01c49485be
commit 099271e0a8
10 changed files with 368 additions and 0 deletions
@@ -0,0 +1,19 @@
<?php
namespace Modules\Core\Customer\Exceptions;
use RuntimeException;
/**
* Thrown by Modules\Core\Customer\Services\CustomerEmailChangeService when
* the requested new email already belongs to a different user — checked
* both up front (request()) and again at confirm() time, since someone
* else could sign up with that address in the window between the two.
*/
class EmailAlreadyTakenException extends RuntimeException
{
public function __construct()
{
parent::__construct('That email address is already in use.');
}
}