Closed ConstantineYurevich closed 9 years ago
CallableResolver
supports one format. If you need another, then you can replace the default implementation with your own choice. Given that CallableResolver
has a mere 63 lines of PHP code in it, it's not hard to replace…
See http://ocramius.github.io/blog/when-to-declare-classes-final/ for question 2.
Ok, thanks.
There are actually 2 related issues connected to CallableResolver class.
Suppose I have following container:
When I try to use it in route - it tells me, that "callableAction is not resolvable":
This way I'm not able to use callableResolver to resolve invokable classes from my container. This classes are quite useful if you use Action-Domain-Responder (with one action per class) pattern instead of Model-View-Controller.
Question: why did you make this class final? :)