packagist php-http/httplug-bundle 2.0.0

latest release: 2.x-dev
one month ago
  • 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: Use profiling instead.
    • respect_cache_headers: Use respect_response_cache_directives instead.
  • Removed the deprecated Http\HttplugBundle\ClientFactory\PluginClientFactory. Use Http\Client\Common\PluginClientFactory instead.
  • Fixed a deprecation when creating a HttpMethodsClient via http_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 accepts verify_peer and verify_host config options. Only a boolean verify 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, and stream_factory classes config option. You can configure your own factories via psr17_*_factory classes config
  • Removed support for guzzle5-adapter
  • Removed support for Symfony versions <5.4
  • Changed the return type of ClientFactory to return a ClientInterface instead of ClientInterface|HttpClient
  • Changed the type of httplug.client.default to ClientInterface instead of HttpClient
  • Removed the DummyClient interface
  • Removed the Http\Client\HttpClient alias use the Psr\Http\Client\ClientInterface typehint in your services for autowiring.
  • Changed classes marked as @final to be actually final. 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.

Don't miss a new httplug-bundle release

NewReleases is sending notifications on new releases.