Post #3489411
2026-06-30 10:32 UTC
The interface cargo cult:
I'm seeing:
- `XInterface` is registered as a service ID in the controller. OK.
- It returns a concrete implementation.. OK.
Then:
- The concrete implementation's class is also registerd in the DI
- It returns the interface
- The concrete implementation X is not retrieved via. the XInterface service but by X.
- The "XInterface" is not used in production code
- There is a test that tests that X implements the XInterface.
That's it.
Replies (1)
-
@george@phpc.social 2026-06-30 12:20
@dantleech@fosstodon.org 🤦♂️