<@U0DGYKCFQ> The reasoning behind the copy during ...
# kodein
s
@neworldlt The reasoning behind the copy during extension is explained in the third comment of this issue : https://github.com/SalomonBrys/Kodein/issues/100
n
Wow, it is serious. Thanks for explanation. Happy to see I am able to safely use
copyAll = true
in the tests
s
When I think about it, only
singleton
and
multiton
bindings should be "protected". Other bindings such as
provider
or
factory
could safely be systematically copied. I may add that into beta 4. I think that would make this all concept more bearable 😉. I'll think about it.
n
My situation quite complex. I have singleton DB connection scoped per request. I can’t allow two requests share one transaction. However, inside tests I doesn’t have request scope, so I am using simple singleton.