23.12.0
Added
- svcs now logs registrations at debug level along with a stacktrace. So if you ever get confused where your factories are coming from, set the log level to debug and trace your registrations!
Changed
-
Ooof. It's obvious in hindsight, but accessing anything directly on a request object like in the
request.svcs.get()
examples erases type information and everything becomes a big soup ofAny
.Therefore, we've added a new "best practice" for integrations to have a
svcs_from()
function that extracts containers from request objects (or from thread locals in the case of Flask).