mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 15:10:47 +03:00
11 lines
218 B
Python
11 lines
218 B
Python
|
from dependency_injector import containers, providers
|
||
|
|
||
|
from .service import Service
|
||
|
|
||
|
|
||
|
class Container(containers.DeclarativeContainer):
|
||
|
|
||
|
config = providers.Configuration()
|
||
|
|
||
|
service = providers.Factory(Service)
|