Eugen Martynov
10/22/2024, 1:37 PMfactoryOf
where I pass implementation constructor but injection key is the parent class?Eugen Martynov
10/22/2024, 1:41 PMfactory<Interface> { new(::Implementation) }
Eugen Martynov
10/22/2024, 1:41 PMLidonis Calhau
10/22/2024, 1:54 PMfactoryOf
factoryOf(::Implementation) bind Interface::class
Eugen Martynov
10/22/2024, 2:27 PMEugen Martynov
10/22/2024, 2:27 PMbinds
that would be reading as normal EnglishLidonis Calhau
10/22/2024, 2:32 PMbinds
is used for an array of bindingLidonis Calhau
10/22/2024, 2:35 PMfactoryOf(::Implementation) { bind<Interface>() }
If you want an other option 🙂Eugen Martynov
10/22/2024, 2:35 PM