Support array callables with resolver
sagikazarmark opened this issue · comments
Márk Sági-Kazár commented
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?
Óscar Otero commented
I'm 👍 with this.
The ContainerInterface says the id must be a string.
Do you want to work in a PR?
Thank you!
Márk Sági-Kazár commented
Do you want to work in a PR?
Definitely
Márk Sági-Kazár commented
Thanks for the nice project and for the easy contribution workflow.
Márk Sági-Kazár commented
Are you going to tag a release?
Óscar Otero commented
yes, give a minute, please.
Márk Sági-Kazár commented
Sure, thanks. 😄
Óscar Otero commented
Done