Here's an interesting experiment that just popped in my head. Curious if there are examples of it in #SoftwareDevelopment, #WebDev, and #PHP specifically:
Has anyone ever written (and documented) an application wherein you only pass and receive messages?
function doSomething(RequestInterface $request): ResonposeInterface
That sort of thing.
I've seen folks use Arrays and individual arguments, of course.
@itsjoshbruce I can see that; essentially a DI container, a resolver (is there an appropriate psr for that?) and then everything else operates as middleware.
Slim is the nearest mature implementation I've seen of that paradigm
Add comment