Releases: crowdsecurity/php-common
Releases · crowdsecurity/php-common
3.0.0
Changed
- Allow
monolog/monolog
3 package - Breaking change:
ConsoleLog
andFileLog
does not extendMonolog\Logger
anymore as this class became
final in Monolog 3. They now implementPsr\Log\LoggerInterface
directly and use aMonolog\Logger
instance internally. - Breaking change:
FileLog
does not rotate log files by default anymore. You can enable it by setting the
log_rotator
configuration totrue
.
2.4.0
2.3.2
Fixed
- Remove
Content-Length
header duringfile_get_contents
call for AppSec request - Remove
Host
header duringfile_get_contents
call for AppSec request only
2.3.1
Fixed
- Remove
Host
header forfile_get_contents
request handler - Check status code before trying to decode the response body
2.3.0
Added
- Add AppSec requests support
Changed
- Throws a
CrowdSec\Common\Client\TimeoutException
forcurl
andfile_get_contents
request handlers when a
timeout is detected
2.2.0
2.1.1
2.1.0
2.0.0
Changed
- Breaking change: If not null, the second param of the
AbstractClient::__contruct
method must implement
RequestHandlerInterface
- Change visibility of
RequestHandler/FileGetContents::convertHeadersToString
method from private to protected
Added
- Add
ORIGIN_CAPI
andORIGIN_LISTS
constants