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

20 lines
824 B
Python

from dishka import BaseScope, Provider, Scope, provide_all
from template_project.application.auth_identity.interactors.sign_in import SignInInteractor
from template_project.application.auth_identity.interactors.sign_up import SignUpInteractor
from template_project.application.user.notification.interactors.send_notification import NotificationInteractor
from template_project.application.user.profile.interactors.get_profile import GetProfileInteractor
from template_project.application.user.profile.interactors.patch_profile import PatchProfileInteractor
class InteractorProvider(Provider):
scope: BaseScope | None = Scope.REQUEST
interactors = provide_all(
SignInInteractor,
SignUpInteractor,
GetProfileInteractor,
PatchProfileInteractor,
NotificationInteractor,
)