Created
November 13, 2021 18:55
-
-
Save cassioeskelsen/e62febd3a4a73eab3166b58bafbbba95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inject | |
from src.xpto.invoices.repositories.invoice_repository import InvoiceRepository | |
from src.xpto.invoices.repositories.mongodb.MongoDBInvoiceRepository import MongoDBInvoiceRepository | |
def ioc_config(binder): | |
binder.bind(InvoiceRepository, MongoDBInvoiceRepository()) | |
def register_ioc(): | |
inject.configure(ioc_config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment