python-dependency-injector/examples/miniapps/commands-and-handlers/application/handler.py

15 lines
313 B
Python
Raw Normal View History

2020-11-21 02:09:34 +03:00
"""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')