mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-29 04:53:59 +03:00
Rename bundles example
This commit is contained in:
parent
6a64b6e297
commit
81718c5b6a
8
examples/miniapps/bundles/README.rst
Normal file
8
examples/miniapps/bundles/README.rst
Normal file
|
@ -0,0 +1,8 @@
|
|||
Dependency Injector Bundles example
|
||||
===================================
|
||||
|
||||
Instructions for running
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
python run.py
|
1
examples/miniapps/bundles/bundles/__init__.py
Normal file
1
examples/miniapps/bundles/bundles/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
"""Bundles package."""
|
|
@ -1,4 +1,4 @@
|
|||
"""Photos package."""
|
||||
"""Photos bundle."""
|
||||
|
||||
from core import containers
|
||||
from core import providers
|
||||
|
@ -8,7 +8,7 @@ from . import repositories
|
|||
|
||||
|
||||
class Photos(containers.DeclarativeContainer):
|
||||
"""Photos package container."""
|
||||
"""Photos bundle container."""
|
||||
|
||||
database = providers.Dependency()
|
||||
file_storage = providers.Dependency()
|
|
@ -1,4 +1,4 @@
|
|||
"""Users package."""
|
||||
"""Users bundle."""
|
||||
|
||||
from core import containers
|
||||
from core import providers
|
||||
|
@ -8,7 +8,7 @@ from . import repositories
|
|||
|
||||
|
||||
class Users(containers.DeclarativeContainer):
|
||||
"""Users container."""
|
||||
"""Users bundle container."""
|
||||
|
||||
database = providers.Dependency()
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
"""Example applications."""
|
||||
"""Example application - Bundles."""
|
||||
|
||||
from core import containers, providers
|
||||
|
||||
from users import Users
|
||||
from photos import Photos
|
||||
from bundles.users import Users
|
||||
from bundles.photos import Photos
|
||||
|
||||
|
||||
class Core(containers.DeclarativeContainer):
|
Loading…
Reference in New Issue
Block a user