thephpleague / route

Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
http://route.thephpleague.com
MIT License
651 stars 126 forks source link

Save the matched Route object as an attribute on the request #336

Closed sanderdlm closed 3 weeks ago

sanderdlm commented 1 year ago

Could be a solution for https://github.com/thephpleague/route/issues/301, but it is definitely a solution for our use case. We'd like an easy way to read the matched Route during every step of the middleware stack. WDYT?