Re:Compile-Time DI vs. Run-Time DI
by stabbles on Tuesday April 30, 2019 @01:49PM
(#19790215)
Yes, in that case you probably need to parse a config file.
But you might also encounter DI config files for specific environments, like development where you inject MockMailer, TrivialLogger and InMemoryDatabase instead of RealLifeMailer, CloudLogger and ActualDatabase.
But you might also encounter DI config files for specific environments, like development where you inject MockMailer, TrivialLogger and InMemoryDatabase instead of RealLifeMailer, CloudLogger and ActualDatabase.