python-dependency-injector/examples/miniapps/commands-and-handlers/application/handler.py
2021-09-30 16:53:27 -04:00

15 lines
313 B
Python

"""Handlers module."""
from .repositories import RatingRepository
class CommandHandler:
def __init__(self, rating_repo: RatingRepository):
self.rating_repo = rating_repo
def save_rating(self):
print("Saving rating")
def something_else(self):
print("Doing something else")