2020-09-02 04:39:23 +03:00
|
|
|
Object provider
|
|
|
|
---------------
|
2016-06-09 17:49:09 +03:00
|
|
|
|
2020-09-02 04:39:23 +03:00
|
|
|
.. 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.
|
2016-06-09 17:49:09 +03:00
|
|
|
|
2020-09-02 04:39:23 +03:00
|
|
|
.. currentmodule:: dependency_injector.providers
|
2016-06-09 17:49:09 +03:00
|
|
|
|
2020-09-02 04:39:23 +03:00
|
|
|
:py:class:`Object` provider returns an object "as is".
|
2016-06-09 17:49:09 +03:00
|
|
|
|
|
|
|
.. literalinclude:: ../../examples/providers/object.py
|
|
|
|
:language: python
|
2020-09-02 04:39:23 +03:00
|
|
|
:lines: 3-
|
2017-02-28 23:07:12 +03:00
|
|
|
|
|
|
|
.. disqus::
|