Closed praswicaksono closed 8 years ago
Hi, this is a very good idea.
The Silex\CallbackResolver
class could be overridden with an implementation that could call Invoker\CallableResolver::resolve()
to resolve the callable.
We might need to keep support of the official notation though (service:method
) so that users are not confused…
Feel free to submit a pull request.
currently in 1.3 CallbackResolver class only process valid
callable
and formatted service nameservicename:method
. Since mostly I use class name as service ID it feel weird if I passcallable
service name. For examplei have to append with ':invoke' each callback. I proposed to override CallbackResolver so it can pass any callable service name without append ':invoke'