--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/6E0D42E3-F11E-4F8F-A58B-A2F9917469B5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
I'm really not a fan of interfacing __invoke and would like an actual method like handle() or process() instead.
The only upside of using __invoke is that you can pass a callback instead of an actual interface implementation and the result would still work.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAKiSzdDOdeBfVH%3Dv59CRSHcaomMF1dCJOBXQmk7UxG54k_b1Bw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAGOJM6L-S5L%2BWp1HRdD7P2Zu0kugwA50RT4hLy-MbfNku1NLHA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAKiSzdAT2DA6r%3DDf%2BrE7%3DzJXTJ%3D7HkFXCwaVzPAu6-DGQmZTkw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/9B58747E-81C0-46AA-9D5D-7910AD58C820%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAGOJM6KiuO5YP%2BBFPuiTn0nf-ZUhLXXmzCQGDaV_pmLONb%3Dp3w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/670CD860-73C0-4E15-AC5A-068B6EE17345%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAGOJM6%2BdHFpWt9inCShO7s%3D%2Bk4Tf%3DKLasP2aWb1dZvqwwr1zaw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/6ACB5BDB-0DB2-4366-9628-92E0FCBF2FB8%40gmail.com.
Exactly the problem I described earlier, there is only one invoke() and that limits you. While with normal methods you coukd have handleRequest and handleServerRequest() methods without conflict
You received this message because you are subscribed to a topic in the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/php-fig/vTtGxdIuBX8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/6ACB5BDB-0DB2-4366-9628-92E0FCBF2FB8%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CANamvv2oj08QJW01i_Kp2j9nvhT%3D6EMRTiADqTNWCo4NewE4Uw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAGOJM6J8VJ0L3kSerzCJjezZwMwBM5iiC_Ytvzs3qGsNL%3DuKVQ%40mail.gmail.com.
It gas middleware embodied in processors. That allows for a declarative approach to request processing. Having separate methods allows both methids to be sarisfied and look coherently imo
You received this message because you are subscribed to a topic in the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/php-fig/vTtGxdIuBX8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/F3F16BAB-120F-44E9-BBC5-BF0885BB65FA%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/F3F16BAB-120F-44E9-BBC5-BF0885BB65FA%40gmail.com.
About the initial proposal I don't see the point of adding an interface with _invoke(). When I'm using _invoke() it's to be able to pass a closure. But when I'm introducing an interface it's to type hint against it, which prevent me from using a Closure if I'm not using php 7.1 or an higher version...
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CANamvv2FrjUUfyeqJ8_WfG4mrR6KUs9tEvsqUgLb8Wz0tBpOmQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CADqTB_g%3DMZL8ehRp%3DvSND-v7Q%2BYhY_zcgagPEZJ4tXLYtpchOA%40mail.gmail.com.