Added
- Autowiring support for FlexibleClient, HttpMethodsClientInterface and
BatchClientInterface if they are enabled on the default/first client.
(Only available with Httplug 2) - Configuration for the content_type plugin
- Support for namespaced Twig classes.
- Configuration option default_client_autowiring that you can set to false
to prevent autowiring the HttpClient and HttpAsyncClient
Changed
- Moved source code to
src/
and tests totests/
- Removed
twig/twig
dependency - Removed hard dependency on
php-http/cache-plugin
. If you want to use the
cache plugin, you need to require it in your project. - Allow to set
httpplug.profiling.captured_body_length
configuration tonull
to avoid body limitation size.
Fixed
- MockFactory now accepts any client, e.g. a mock client decorated with the
plugin client for the development panel, so that configuring a mock client
actually works. The MockFactory is nowfinal
. - Width of the HTTPlug icon in Profiler Toolbar.
RequestExceptionInterface
formatting (getResponse()
is not called anymore).