Releases: nimbly/Capsule
Releases · nimbly/Capsule
Release 0.9
Breaking changes
- Removed
Response::isSuccessful()
- method is not listed in interface and "success" is too subjective. FileStream::getMetadata()
no longer throws aRuntimeException
if a meta data key is not found. Instead, as detailed in interface, it will returnnull
.- StreamInterface implementations now throw
RuntimeException
if the underlying resource cannot be read, written, or seek a position.
Release 0.8.1
Fixes
- Composer version config
- Psalm reported errors and issues
- Updating dependencies
Release 0.8
Breaking changes
Request::create()
factory removed.ServerRequest
constructor method signature change:$serverParams
are now passed into constructor.
New features
PSR-17 Message Factory
Capsule now provides Capsule\Factory
for providing PSR-17 support.
ServerRequest helpers
ServerRequest
now supports 3 new helper methods to get and check for request data:
has(string $name):bool
Check request for body or query param existence.get(string $name)
Get param value from request body or query params.all(): array
Get all values from request body and query params.