mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Add minor fixes to movie lister miniapp
This commit is contained in:
parent
c50322db02
commit
4a37433c43
|
@ -23,10 +23,10 @@ import dependency_injector.providers as providers
|
|||
class MoviesModule(containers.DeclarativeContainer):
|
||||
"""IoC container of movies module component providers."""
|
||||
|
||||
models_factory = providers.Factory(movies.models.Movie)
|
||||
movie = providers.Factory(movies.models.Movie)
|
||||
|
||||
finder = providers.AbstractFactory(movies.finders.MovieFinder,
|
||||
movie_model=models_factory.delegate())
|
||||
movie_model=movie.provider)
|
||||
|
||||
lister = providers.Factory(movies.listers.MovieLister,
|
||||
movie_finder=finder)
|
||||
|
|
Loading…
Reference in New Issue
Block a user