@lukasrotermund@social.lukasrotermund.de
Post #3513636
2026-07-01 14:25 UTC
Today I realized again that I really don't like (PHP) Symfony. When everything works, it's simple. But when some dependency injection (DI) magic doesn't work, and e.g., an injected logger logs into the void instead of to your log management, you suddenly have to be an expert in unshittyfying/ demystifying/ untangling the DI magic.
I am stupid, and I like stupid-simple solutions. No magic. No DI. No YAML or XML configs. No attributes on classes, spread everywhere in the codebase.
I just want a main function, where I plug everything together myself...
Stupid & simple... But it is, what it is... But I will never like it.
#Symfony #PHP #DependencyInjection
Replies (1)
-
@Crell@phpc.social 2026-07-01 15:15
@lukasrotermund@social.lukasrotermund.de Small point, you're against auto wiring, it sounds like. That's not necessary for DI. DI is just "provide dependencies via the constructor rather than creating them yourself." Everything else is just an automation mechanism on top of that.