forked from fa/breadcrumb-the-shire
refactor(notifications): remove factory indirection, interface, and listener duplication
Remove NotificationRepositoryFactory, NotificationServicesFactory, and NotificationRepositoryInterface — all single-consumer abstractions with no polymorphism benefit. Simplify container registrar to wire services directly. Extract shared listener logic (sanitizeTenantIds, resolveDisplayName, resolveUuid) into NotificationListenerTrait, eliminating duplication across 4 listeners. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ namespace MintyPHP\Module\Notifications\Repository;
|
||||
use MintyPHP\DB;
|
||||
use MintyPHP\Repository\Support\RepositoryArrayHelper;
|
||||
|
||||
class NotificationRepository implements NotificationRepositoryInterface
|
||||
class NotificationRepository
|
||||
{
|
||||
private const DEDUPE_WINDOW_SECONDS = 1800;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user