fix(helpdesk): inject appTitle/appUrl into HandoverNotificationService to avoid DB calls in tests

This commit is contained in:
aminovfariz
2026-06-05 14:10:13 +02:00
parent b8fc55bcc2
commit 3f08f6189e
4 changed files with 31 additions and 8 deletions

View File

@@ -145,7 +145,9 @@ final class HelpdeskContainerRegistrar implements ContainerRegistrar
));
$container->set(HandoverNotificationService::class, static fn (AppContainer $c): HandoverNotificationService => new HandoverNotificationService(
$c->get(MailService::class)
$c->get(MailService::class),
appTitle(),
appUrl(),
));
$container->set(HandoverService::class, static fn (AppContainer $c): HandoverService => new HandoverService(