5 ms·
You missed the context of this example - it's just there to show that IF you don't want to use constructor DI, you can put things in lib and they won't become p
by solnic 4y ago
You missed the context of this example - it's just there to show that IF you don't want to use constructor DI, you can put things in lib and they won't become part of the automatic DI system
- revskill 4y agoThe point here, is, let's code in production. No good production code allows such things to accidentially happen, so to me, it's the error from framework. What's the point of using a framework if it couldn't help me do silly things then ?
- lukeasrodgers 4y agoHow would Hanami prevent this without messing with ruby constant lookup? Probably monkey patches to Kernel would be required.