- Increased min PHP version to 8.1
- Removed the deprecated
httplug_markup
twig filter. Use@Httplug/http_message.html.twig
template instead. - Removed deprecated configuration options:
toolbar
: Useprofiling
instead.respect_cache_headers
: Userespect_response_cache_directives
instead.
- Removed the deprecated
Http\HttplugBundle\ClientFactory\PluginClientFactory
. UseHttp\Client\Common\PluginClientFactory
instead. - Fixed a deprecation when creating a
HttpMethodsClient
viahttp_methods_client: true
. Only PSR-17 factories are now passed as constructor arguments. - Changed the default stream factory argument for the cache plugin. This now requires a PSR-17 StreamFactoryInterface instance.
- Creating a client using the
BuzzFactory
no longer acceptsverify_peer
andverify_host
config options. Only a booleanverify
flag is accepted, covering both previous options. - Removed support of deprecated PHP-HTTP factories, only PSR-17 factories are now supported and used.
- Removed
message_factory
,uri_factory
, andstream_factory
classes config option. You can configure your own factories viapsr17_*_factory
classes config - Removed support for guzzle5-adapter
- Removed support for Symfony versions <5.4
- Changed the return type of
ClientFactory
to return aClientInterface
instead ofClientInterface|HttpClient
- Changed the type of
httplug.client.default
toClientInterface
instead ofHttpClient
- Removed the
DummyClient
interface - Removed the
Http\Client\HttpClient
alias use thePsr\Http\Client\ClientInterface
typehint in your services for autowiring. - Changed classes marked as
@final
to be actuallyfinal
. If you extended any of those, instead implement interfaces or decorate the class rather than extending it. Open an issue if you think a class needs to be made non-final to discuss what we should do. - Added return type declaration to
Http\HttplugBundle\ClientFactory\ClientFactory::createClient
- Added interface name alias for the
Http\Mock\Client
and all PSR17 factories to help with autowiring.