mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 01:47:36 +03:00 
			
		
		
		
	Update docs
This commit is contained in:
		
							parent
							
								
									9ac7cb7f22
								
							
						
					
					
						commit
						3429dfd1b9
					
				| 
						 | 
				
			
			@ -77,6 +77,13 @@ You can use configuration, provided instance and sub-container providers as you
 | 
			
		|||
You can compound wiring and ``Resource`` provider to implement per-function execution scope.
 | 
			
		||||
See :ref:`Resources, wiring and per-function execution scope <resource-provider-wiring-closing>` for details.
 | 
			
		||||
 | 
			
		||||
Also you can use ``Provide`` marker to inject a container.
 | 
			
		||||
 | 
			
		||||
.. literalinclude:: ../examples/wiring/example_container.py
 | 
			
		||||
   :language: python
 | 
			
		||||
   :emphasize-lines: 16-19
 | 
			
		||||
   :lines: 3-
 | 
			
		||||
 | 
			
		||||
Wiring with modules and packages
 | 
			
		||||
--------------------------------
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user