Closed caiquecp closed 4 years ago
Hi,
Use ‘binder.bind_to_constructor(Database, MongoDatabase)’.
‘MongoDatabase()’ inside ‘config_injector’ tries to get its dependencies and accesses the global injector which is not configured yet.
OK, I'll do it. Thank you!
What I'm trying to do:
MongoSomeRepository has dependency over Database, but when I'm trying to config it this way I got the error "No injector is configured". I guess it happens because at the moment the bind is being made the injector is not ready. So how do I handle this case?