Merge branch '4.3' into 4.4

* 4.3:
  [Validator] fix deprecation layer of ValidatorBuilder
  [HttpKernel] Fix missing use for request and response classes
  bumped Symfony version to 4.3.2
  updated VERSION for 4.3.1
  updated CHANGELOG for 4.3.1
This commit is contained in:
Nicolas Grekas 2019-06-06 20:30:43 +02:00
commit c8c159a755
6 changed files with 48 additions and 5 deletions

View File

@ -7,6 +7,46 @@ in 4.3 minor versions.
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v4.3.0...v4.3.1
* 4.3.1 (2019-06-06)
* bug #31894 Fix wrong requirements for ocramius/proxy-manager in root composer.json (henrikvolmer)
* bug #31865 [Form] Fix wrong DateTime on outdated ICU library (aweelex)
* bug #31893 [HttpKernel] fix link to source generation (nicolas-grekas)
* bug #31880 [FrameworkBundle] fix BC-breaking property in WebTestAssertionsTrait (nicolas-grekas)
* bug #31881 [FramworkBundle][HttpKernel] fix KernelBrowser BC layer (nicolas-grekas)
* bug #31879 [Cache] Pass arg to get callback everywhere (fancyweb)
* bug #31874 [Doctrine Bridge] Check field type before adding Length constraint (belinde)
* bug #31872 [Messenger] Add missing runtime check for ext redis version (chalasr)
* bug #31864 [Cache] Fixed undefined variable in ArrayTrait (eXtreme)
* bug #31863 [HttpFoundation] Fixed case-sensitive handling of cache-control header in RedirectResponse constructor (Ivo)
* bug #31850 [HttpClient] add $response->cancel() (nicolas-grekas)
* bug #31871 [HttpClient] revert bad logic around JSON_THROW_ON_ERROR (nicolas-grekas)
* bug #31869 Fix json-encoding when JSON_THROW_ON_ERROR is used (nicolas-grekas)
* bug #31868 [HttpKernel] Fix handling non-catchable fatal errors (nicolas-grekas)
* bug #31834 [HttpClient] Don't throw InvalidArgumentException on bad Location header (nicolas-grekas)
* bug #31846 [Mailer] Set default crypto method (bpolaszek)
* bug #31849 [Console] Add check for Konsole/Yakuake to disable hyperlinks (belinde)
* bug #31854 Rename the Symfony Mailer service implementation to avoid conflict with SwitMailer (tgalopin)
* bug #31856 [VarDumper] fix dumping the cloner itself (nicolas-grekas)
* bug #31861 [HttpClient] work around PHP 7.3 bug related to json_encode() (nicolas-grekas)
* bug #31860 [HttpFoundation] work around PHP 7.3 bug related to json_encode() (nicolas-grekas)
* bug #31852 [Form] add missing symfony/service-contracts dependency (nicolas-grekas)
* bug #31836 [DoctrineBridge] do not process private properties from parent class (xabbuh)
* bug #31790 [Messenger] set amqp content_type based on serialization format (Tobion)
* bug #31832 [HttpClient] fix unregistering the debug buffer when using curl (nicolas-grekas)
* bug #31407 [Security] added support for updated "distinguished name" format in x509 authentication (Robert Kopera)
* bug #31774 [Mailer] Fix the possibility to set a From header from MessageListener (fabpot)
* bug #31811 [DoctrineBridge] don't add embedded properties to wrapping class metadata (xabbuh)
* bug #31786 [Translation] Fixed case sensitivity of lint:xliff command (javiereguiluz)
* bug #31815 [Translator] Collect locale details earlier in the process (pierredup)
* bug #31761 [TwigBridge] suggest Translation Component when TranslationExtension is used (nicolas-grekas)
* bug #31748 [Messenger] Inject RoutableMessageBus instead of bus locator (chalasr)
* bug #31763 [Security\Core] Make SodiumPasswordEncoder validate BCrypt-ed passwords (nicolas-grekas)
* bug #31744 [Validator] Fix TimezoneValidator default option (ro0NL)
* bug #31749 [DoctrineBridge][Validator] do not enable validator auto mapping by default (xabbuh)
* bug #31757 [DomCrawler] Fix type error with null Form::$currentUri (chalasr)
* bug #31721 [PHPUnitBridge] Use a more appropriate group when deprecating mode (greg0ire)
* 4.3.0 (2019-05-30)
* bug #31654 [HttpFoundation] Do not set X-Accel-Redirect for paths outside of X-Accel-Mapping (vilius-g)

View File

@ -385,7 +385,7 @@ Validator
* The `symfony/translation` dependency has been removed - run `composer require symfony/translation` if you need the component
* The `checkMX` and `checkHost` options of the `Email` constraint are deprecated
* The component is now decoupled from `symfony/translation` and uses `Symfony\Contracts\Translation\TranslatorInterface` instead
* The `ValidatorBuilderInterface` has been deprecated and `ValidatorBuilder` made final
* The `ValidatorBuilderInterface` has been deprecated and `ValidatorBuilder::setTranslator()` has been made final
* Deprecated validating instances of `\DateTimeInterface` in `DateTimeValidator`, `DateValidator` and `TimeValidator`. Use `Type` instead or remove the constraint if the underlying model is type hinted to `\DateTimeInterface` already.
* Using the `Bic`, `Country`, `Currency`, `Language` and `Locale` constraints without `symfony/intl` is deprecated
* Using the `Email` constraint in strict mode without `egulias/email-validator` is deprecated

View File

@ -437,7 +437,7 @@ Validator
* Calling `EmailValidator::__construct()` method with a boolean parameter has been removed, use `EmailValidator("strict")` instead.
* Removed the `checkDNS` and `dnsMessage` options from the `Url` constraint.
* The component is now decoupled from `symfony/translation` and uses `Symfony\Contracts\Translation\TranslatorInterface` instead
* The `ValidatorBuilderInterface` has been removed and `ValidatorBuilder` is now final
* The `ValidatorBuilderInterface` has been removed
* Removed support for validating instances of `\DateTimeInterface` in `DateTimeValidator`, `DateValidator` and `TimeValidator`. Use `Type` instead or remove the constraint if the underlying model is type hinted to `\DateTimeInterface` already.
* The `symfony/intl` component is now required for using the `Bic`, `Country`, `Currency`, `Language` and `Locale` constraints
* The `egulias/email-validator` component is now required for using the `Email` constraint in strict mode

View File

@ -11,6 +11,9 @@
namespace Symfony\Component\HttpKernel;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Client simulates a browser and makes requests to an HttpKernel instance.
*

View File

@ -32,7 +32,7 @@ CHANGELOG
* added `DivisibleBy` constraint
* decoupled from `symfony/translation` by using `Symfony\Contracts\Translation\TranslatorInterface`
* deprecated `ValidatorBuilderInterface`
* made `ValidatorBuilder` final
* made `ValidatorBuilder::setTranslator()` final
* marked `format` the default option in `DateTime` constraint
* deprecated validating instances of `\DateTimeInterface` in `DateTimeValidator`, `DateValidator` and `TimeValidator`.
* deprecated using the `Bic`, `Country`, `Currency`, `Language` and `Locale` constraints without `symfony/intl`

View File

@ -38,8 +38,6 @@ use Symfony\Contracts\Translation\TranslatorTrait;
* The default implementation of {@link ValidatorBuilderInterface}.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @final since Symfony 4.2
*/
class ValidatorBuilder implements ValidatorBuilderInterface
{
@ -255,6 +253,8 @@ class ValidatorBuilder implements ValidatorBuilderInterface
/**
* {@inheritdoc}
*
* @final since Symfony 4.2
*/
public function setTranslator(LegacyTranslatorInterface $translator)
{