middlewares / fast-route

PSR-15 middleware to use FastRoute

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support array callables with resolver

sagikazarmark opened this issue · comments

Currently if the callable is an array the resolver will be called with this array as the id.

Callable arrays with fast route usually look like this:

[\Namespace\To\Controller::class, 'methodName']

I propose adding an extra check and only try to resolve the first element of the array here

WDYT?

I'm 👍 with this.
The ContainerInterface says the id must be a string.
Do you want to work in a PR?
Thank you!

Do you want to work in a PR?

Definitely

Thanks for the nice project and for the easy contribution workflow.

Are you going to tag a release?

yes, give a minute, please.

Sure, thanks. 😄