This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer
Fabien Potencier 59fad59886 feature #28210 [Contracts] Add Translation\TranslatorInterface + decouple symfony/validator from symfony/translation (nicolas-grekas)
This PR was merged into the 4.2-dev branch.

Discussion
----------

[Contracts] Add Translation\TranslatorInterface + decouple symfony/validator from symfony/translation

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #15714, #18930
| License       | MIT
| Doc PR        | -

Let's decouple Validator from Translation component \o/!

TODO:
- [x] add `TranslatorInterface`, deprecate it from Translation
- [x] add `TranslatorTrait`, deprecating `MessageSelector`, `Internal` and `PluralizationRules`
- [x] deprecate `ValidatorBuilderInterface(LegacyTranslatorInterface)`
- [x] inject a new `identity_translator` into `translator.formatter.default`, deprecate `translator.selector`
- [x] copy tests in the Contracts namespace to ensure the `TranslatorTrait` behaves properly
- [x] figure out a way to keep throwing `InvalidArgumentException` from the component
- [x] update UPGRADING and CHANGELOG files
- [x] polish the deprecation layer (ensure all needed runtime deprecations are here)

Reviews welcome already.

Commits
-------

064e369e06 [Contracts] Add Translation\TranslatorInterface + decouple symfony/validator from symfony/translation
2018-09-03 22:20:47 +02:00
..
AbstractPhpFileCacheWarmer.php [FrameworkBundle] Don't populate fallback cache on warmup 2018-09-01 18:33:14 +02:00
AnnotationsCacheWarmer.php [FrameworkBundle] Don't populate fallback cache on warmup 2018-09-01 18:33:14 +02:00
RouterCacheWarmer.php Merge branch '4.0' 2018-02-22 12:40:25 +01:00
SerializerCacheWarmer.php [FrameworkBundle] Don't populate fallback cache on warmup 2018-09-01 18:33:14 +02:00
TemplateFinder.php Merge branch '3.4' into 4.0 2018-07-26 11:08:35 +02:00
TemplateFinderInterface.php fixed CS 2012-07-09 14:54:20 +02:00
TemplatePathsCacheWarmer.php Merge branch '2.8' into 3.4 2018-07-26 11:06:28 +02:00
TranslationsCacheWarmer.php [Contracts] Add Translation\TranslatorInterface + decouple symfony/validator from symfony/translation 2018-09-03 15:19:33 +02:00
ValidatorCacheWarmer.php [FrameworkBundle] Don't populate fallback cache on warmup 2018-09-01 18:33:14 +02:00