Releases: php-http/HttplugBundle
Releases · php-http/HttplugBundle
2.1.0
2.0.0
- Increased min PHP version to 8.1
- Removed the deprecated httplug_markuptwig filter. Use@Httplug/http_message.html.twigtemplate instead.
- Removed deprecated configuration options:
- toolbar: Use- profilinginstead.
- respect_cache_headers: Use- respect_response_cache_directivesinstead.
 
- Removed the deprecated Http\HttplugBundle\ClientFactory\PluginClientFactory. UseHttp\Client\Common\PluginClientFactoryinstead.
- Fixed a deprecation when creating a HttpMethodsClientviahttp_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 BuzzFactoryno longer acceptsverify_peerandverify_hostconfig options. Only a booleanverifyflag 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_factoryclasses config option. You can configure your own factories viapsr17_*_factoryclasses config
- Removed support for guzzle5-adapter
- Removed support for Symfony versions <5.4
- Changed the return type of ClientFactoryto return aClientInterfaceinstead ofClientInterface|HttpClient
- Changed the type of httplug.client.defaulttoClientInterfaceinstead ofHttpClient
- Removed the DummyClientinterface
- Removed the Http\Client\HttpClientalias use thePsr\Http\Client\ClientInterfacetypehint in your services for autowiring.
- Changed classes marked as @finalto 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\Clientand all PSR17 factories to help with autowiring.