Post #758321
2026-01-31 21:23 UTC
What if we could run a list of middlewares without the stack trace becoming deeper than 1?
After talking about crazy PHP things with @sebastian @nielsdos and @Girgias this mad idea came to me on the train back from #fosdem
Took 3 attempts to make it work, and its clumsy becuse you need to call yield and then $response = yield;
Or is there a better way?
Anyways, stacktrace only has depth 1 here for each Middleware::process call.
Wdyt?
https://gist.github.com/beberlei/c958c24bcea4b08013eb1126e65fefce
Replies (0)
No replies.