Skip to content

Modify intended handler queue

Pre-release
Pre-release
Compare
Choose a tag to compare
@pmjones pmjones released this 06 Jun 20:34
· 50 commits to 1.x since this release

Now the ExceptionHandler does not send the modified response. Likewise, the SendingHandler now calls $next() before sending instead of after. This means the SendingHandler should be first in the queue, so that it sends the response after it has been returned from all other middleware after it, and the ExceptionHandler should be next after the SendingHandler to catch exceptions from further down the middleware queue.