Benjamin Eberlei
Founder and performance detective at https://tideways.com - hosting the Undercover ElePHPant podcast (https://undercover-elephpant.com). Open-Source contributor to Doctrine and PHP-SRC.
Spontaneous one day trip to Brussels for #fosdem #fosdem2026 to meet #PHP community, and also releasing a small part of the herd. Who is there?
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@phpc.social @nielsdos@phpc.social and @Girgias@phpc.social 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
