Open mnavarrocarter opened 5 years ago
This is definitely interesting. What we'd need from you is a pull request with:
path()
utility function for simplifying decorating middleware/handlers with this.Submit the PR against the develop branch.
Thanks!
This repository has been closed and moved to laminas/laminas-stratigility; a new issue has been opened at https://github.com/laminas/laminas-stratigility/issues/6.
I was taking a look to the PathMiddlewareDecorator for a project I'm working on, but it kinda didn't suited my needs.
So I ended up building my own decorator. How keen are you guys of accepting a PR with it? Here's a very naive implementation:
Of course it should be named differently to the one you guys already have. Maybe
ConfigurablePathMiddlewareDecorator
?