- Add support for the
max_connect_durationoption inHttpClientInterface - Add support for hooked properties in
ServiceMethodsSubscriberTrait - Add
ContainerAwareInterface
- Make
HttpClientTestCaseandTranslatorTestcompatible with PHPUnit 10+ - Add
NamespacedPoolInterfaceto support namespace-based invalidation
- Add
ServiceCollectionInterface - Deprecate
ServiceSubscriberTrait, useServiceMethodsSubscriberTraitinstead
- Allow custom working directory in
TestHttpServer
- Add option
crypto_methodtoHttpClientInterfaceto define the minimum TLS version to accept
- Allow
ServiceSubscriberInterface::getSubscribedServices()to returnSubscribedService[]
- Bump to PHP 8 minimum
- Add native return types
- Remove deprecated features
- Add
SubscribedServiceattribute, deprecate currentServiceSubscriberTraitusage
- Add
HttpClientInterface::withOptions() - Add
TranslatorInterface::getLocale()
- added
Translation\TranslatableInterfaceto enable value-objects to be translated - made
Translation\TranslatorTrait::getLocale()fallback to intl'sLocale::getDefault()when available
- added
Service\Attribute\Requiredattribute for PHP 8
- fixed compat with PHP 8
- added "symfony/deprecation-contracts"
- added
/jsonendpoints to the test mock HTTP server
- bumped minimum PHP version to 7.2 and added explicit type hints
- made "psr/event-dispatcher" a required dependency of "symfony/event-dispatcher-contracts"
- made "symfony/http-client-contracts" not experimental anymore
- fixed compat with PHP 8
- added
HttpClientnamespace with contracts for implementing flexible HTTP clients - added
EventDispatcherInterfaceandEventin namespaceEventDispatcher - added
ServiceProviderInterfacein namespaceService
- added
Service\ResetInterfaceto provide a way to reset an object to its initial state - added
Translation\TranslatorInterfaceandTranslation\TranslatorTrait - added
Cachecontract to extend PSR-6 with tag invalidation, callback-based computation and stampede protection - added
Service\ServiceSubscriberInterfaceto declare the dependencies of a class that consumes a service locator - added
Service\ServiceSubscriberTraitto implementService\ServiceSubscriberInterfaceusing methods' return types - added
Service\ServiceLocatorTraitto help implement PSR-11 service locators