Releases: crowdsecurity/php-common
Releases · crowdsecurity/php-common
3.0.1
3.0.0
Changed
- Allow
monolog/monolog3 package - Breaking change:
ConsoleLogandFileLogdoes not extendMonolog\Loggeranymore as this class became
final in Monolog 3. They now implementPsr\Log\LoggerInterfacedirectly and use aMonolog\Loggerinstance internally. - Breaking change:
FileLogdoes not rotate log files by default anymore. You can enable it by setting the
log_rotatorconfiguration totrue.
2.4.0
2.3.2
Fixed
- Remove
Content-Lengthheader duringfile_get_contentscall for AppSec request - Remove
Hostheader duringfile_get_contentscall for AppSec request only
2.3.1
Fixed
- Remove
Hostheader forfile_get_contentsrequest 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\TimeoutExceptionforcurlandfile_get_contentsrequest 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::__contructmethod must implement
RequestHandlerInterface - Change visibility of
RequestHandler/FileGetContents::convertHeadersToStringmethod from private to protected
Added
- Add
ORIGIN_CAPIandORIGIN_LISTSconstants