On Wed, Jan 10, 2018 at 4:06 PM, Benjamin Mack <
benjam...@gmail.com> wrote:
> speaking for the TYPO3 CMS project, we have a similar approach for the request handlers already, and PSR-15 would almost fit in (although we have named "handle()" into "handleRequest()" which is irrelevant in this discussion IMHO, as it's about "naming things") and we'd surely adapt it.
>
> As for the double-pass / single-pass discussion, single-pass would be the only solution for us to use - thus, this is good for us to go (although we don't have voting power, but should not matter).
>
> The only thing I personally thought on first reading a couple of weeks ago was that PSR-15 does not ship with a base exception which could be extended from (see 1.4 Handling Exceptions), but that discussion happened as well already.
For those who did not read the discussion: The rationale is because we
do not want to force developers to wrap all code internal to the
middleware/handler in a try/catch block in order to throw a
spec-defined exception type. We felt this was limiting, and ultimately
would likely prevent adoption, particularly as several in the working
group have successfully developed exception-handling middleware that
was capable of working with any exception/throwable.
Thanks for your feedback, Benni Mack!
> To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/063F6C1A-1454-4C4E-9A58-546EAD42E714%40gmail.com.