Update services example

This commit is contained in:
Roman Mogilatov 2016-04-20 14:45:42 +03:00
parent 1292d4af68
commit 8bc5b35903
6 changed files with 4 additions and 21 deletions

View File

@ -68,7 +68,7 @@ Example
from dependency_injector import providers from dependency_injector import providers
from dependency_injector import injections from dependency_injector import injections
import services # Example business services module (Users, Photos, Auth) from example import services
class Platform(catalogs.DeclarativeCatalog): class Platform(catalogs.DeclarativeCatalog):

View File

@ -1,10 +0,0 @@
"""Flask application."""
import flask
app = flask.Flask(__name__)
if __name__ == '__main__':
app.run()

View File

@ -1,8 +0,0 @@
"""Services package."""
from dependency_injector import catalogs
from dependency_injector import providers
class ServicesModule(catalogs.DeclarativeCatalog):
"""Service providers module."""

View File

@ -0,0 +1 @@
"""Example top-level package."""

View File

@ -1,4 +1,4 @@
"""Services module.""" """Example business services module."""
class Users(object): class Users(object):

View File

@ -9,7 +9,7 @@ from dependency_injector import catalogs
from dependency_injector import providers from dependency_injector import providers
from dependency_injector import injections from dependency_injector import injections
import services # Example business services module (Users, Photos, Auth) from example import services
class Platform(catalogs.DeclarativeCatalog): class Platform(catalogs.DeclarativeCatalog):