- Make
HttpClientTestCase
andTranslatorTest
compatible with PHPUnit 10+
- Add
ServiceCollectionInterface
- Deprecate
ServiceSubscriberTrait
, useServiceMethodsSubscriberTrait
instead
- Allow custom working directory in
TestHttpServer
- Add option
crypto_method
toHttpClientInterface
to 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
SubscribedService
attribute, deprecate currentServiceSubscriberTrait
usage
- Add
HttpClientInterface::withOptions()
- Add
TranslatorInterface::getLocale()
- added
Translation\TranslatableInterface
to enable value-objects to be translated - made
Translation\TranslatorTrait::getLocale()
fallback to intl'sLocale::getDefault()
when available
- added
Service\Attribute\Required
attribute for PHP 8
- fixed compat with PHP 8
- added "symfony/deprecation-contracts"
- added
/json
endpoints 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
HttpClient
namespace with contracts for implementing flexible HTTP clients - added
EventDispatcherInterface
andEvent
in namespaceEventDispatcher
- added
ServiceProviderInterface
in namespaceService
- added
Service\ResetInterface
to provide a way to reset an object to its initial state - added
Translation\TranslatorInterface
andTranslation\TranslatorTrait
- added
Cache
contract to extend PSR-6 with tag invalidation, callback-based computation and stampede protection - added
Service\ServiceSubscriberInterface
to declare the dependencies of a class that consumes a service locator - added
Service\ServiceSubscriberTrait
to implementService\ServiceSubscriberInterface
using methods' return types - added
Service\ServiceLocatorTrait
to help implement PSR-11 service locators