chore: snapshot notifications hardening and css/docs alignment
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace MintyPHP\Module\Notifications\Service;
|
||||
|
||||
use MintyPHP\Repository\Tenant\UserTenantRepositoryInterface;
|
||||
|
||||
class NotificationServicesFactory
|
||||
{
|
||||
private ?NotificationService $notificationService = null;
|
||||
@@ -11,10 +13,11 @@ class NotificationServicesFactory
|
||||
) {
|
||||
}
|
||||
|
||||
public function createNotificationService(): NotificationService
|
||||
public function createNotificationService(UserTenantRepositoryInterface $userTenantRepository): NotificationService
|
||||
{
|
||||
return $this->notificationService ??= new NotificationService(
|
||||
$this->notificationRepositoryFactory->createNotificationRepository()
|
||||
$this->notificationRepositoryFactory->createNotificationRepository(),
|
||||
$userTenantRepository
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user