Files
RekomenciBackend/src/template_project/web_api/ioc/notifications.py
T
2025-11-20 21:25:48 +03:00

13 lines
425 B
Python

from dishka import BaseScope, Provider, Scope, provide
from template_project.adapters.notifications.fcm import FCMNotificationService
from template_project.application.common.notifications.service import NotificationService
class NotificationServiceProvider(Provider):
scope: BaseScope | None = Scope.APP
@provide
def notification_service(self) -> NotificationService:
return FCMNotificationService()