This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Stratigility 1.1.0
Added
- #13 adds
Utils::getStatusCode($error, ResponseInterface $response)
; this static method will attempt to use an exception code as an HTTP status code, if it falls in a valid HTTP error status range. If the error is not an exception, it ensures that the status code is an error status.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #12 updates
FinalHandler
such that it will return the response provided at invocation if it differs from the response at initialization (i.e., a new response instance, or if the body size has changed). This allows you to safely call
$next()
from all middleware in order to allow post-processing.