v0.21.8
Added
- Add
HttpHeadersandIHttpHeaders - Add
IAccessTokenand implement its methods inAccessToken - Add
Jsonable - Add
Arr::lower(),Arr::upper(),Arr::toIndex() - Add
File::write(),File::seek(),File::tell() - Add
Pcre::grep()
Changed
-
ICollection:- Allow callbacks to receive item keys, values or both
- Limit
TKeytoarray-key, removing hypothetical support for arbitrary key types but allowing implementation ofArrayableetc. - Implement
Arrayable,Jsonable,JsonSerializable - In
ICollection::merge(), acceptArrayable|iterableinstead ofstatic|iterable
-
Move parts of
TCollectionto a separateTReadableCollectiontrait -
Move
Lkrms\Support\Http->Lkrms\Http -
Move
Lkrms\Support\Catalog\Http*->Lkrms\Http\Catalog -
Move
Lkrms\Auth->Lkrms\Http\Auth -
Add
HttpHeaderGroupand clean up existingHttpenumerations -
Rename
HttpRequestMethods->HttpRequestMethodGroup -
Rename
Curler::addPrivateHeaderName()->addSensitiveHeaderName() -
Replace
CurlerHeadersand friends withHttpHeadersand friends -
Replace
ICurlerHeaderscalls withIHttpHeadersequivalents:getHeaders()->getLines()getHeaderValue()->getHeaderLine()getHeaderValues()->getHeaderLines()
-
In
File::close(), make$filenameoptional and rename it to$uri -
In
File::writeCsv(), usephp://tempinstead ofphp://memoryfor temporary output -
Rename
Regex::NOT_ESCAPED->Regex::BEFORE_UNESCAPED -
Make
FilesystemErrorException(and most other exceptions) extendRuntimeExceptioninstead ofException
Removed
- Remove superseded
ICurlerHeaders,CurlerHeaders,CurlerHeadersFlag,CurlerHeader - Remove unused
FluentArrayclass - Remove
$privatearguments fromCurler::addHeader()andCurler::setHeader() - Remove support for filtering headers by pattern in
Curler::unsetHeader() - Remove
$valueparameter fromICollection::unset()
Fixed
- Fix issue where
File::getStreamUri()fails for streams with no URI