mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-27 03:54:00 +03:00
18 lines
462 B
ReStructuredText
18 lines
462 B
ReStructuredText
Object provider
|
|
===============
|
|
|
|
.. meta::
|
|
:keywords: Python,DI,Dependency injection,IoC,Inversion of Control,Object
|
|
:description: Object provider provides an object "as is". This page demonstrates how to use an
|
|
Object provider.
|
|
|
|
.. currentmodule:: dependency_injector.providers
|
|
|
|
:py:class:`Object` provider returns an object "as is".
|
|
|
|
.. literalinclude:: ../../examples/providers/object.py
|
|
:language: python
|
|
:lines: 3-
|
|
|
|
.. disqus::
|