Update declarative container docs
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 231 KiB |
Before Width: | Height: | Size: 295 KiB After Width: | Height: | Size: 295 KiB |
BIN
docs/images/containers/declarative.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
docs/images/containers/declarative_inheritance.png
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
docs/images/containers/declarative_injections.png
Normal file
After Width: | Height: | Size: 112 KiB |
|
@ -1,7 +1,7 @@
|
|||
"""Declarative IoC container simple example."""
|
||||
|
||||
from dependency_injector import containers
|
||||
from dependency_injector import providers
|
||||
import dependency_injector.containers as containers
|
||||
import dependency_injector.providers as providers
|
||||
|
||||
|
||||
# Defining declarative IoC container:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""Declarative IoC containers inheritance example."""
|
||||
|
||||
from dependency_injector import containers
|
||||
from dependency_injector import providers
|
||||
import dependency_injector.containers as containers
|
||||
import dependency_injector.providers as providers
|
||||
|
||||
|
||||
class ContainerA(containers.DeclarativeContainer):
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import sqlite3
|
||||
|
||||
from dependency_injector import containers
|
||||
from dependency_injector import providers
|
||||
import dependency_injector.containers as containers
|
||||
import dependency_injector.providers as providers
|
||||
|
||||
|
||||
class UsersService(object):
|
||||
|
|