bug #14891 without this change allways the legacy code get called (dominikzogg)
This PR was submitted for the 2.8 branch but it was merged into the 2.6 branch instead (closes #14891).
Discussion
----------
without this change allways the legacy code get called
[Form] [Validator] prevent that always the legacy validator logic get called
| Q | A
| ------------- | ---
| Bug fix? | [yes]
| New feature? | [no]
| BC breaks? | [no]
| Deprecations? | [no]
| Tests pass? | [yes]
| Fixed tickets | []
| License | MIT
| Doc PR | []
Commits
-------
96a30bf
without this change allways the legacy code get called
This commit is contained in:
commit
847a3e3348
@ -59,13 +59,13 @@ class ValidatorExtension extends AbstractExtension
|
||||
|
||||
public function loadTypeGuesser()
|
||||
{
|
||||
// 2.4 API
|
||||
if ($this->validator instanceof LegacyValidatorInterface) {
|
||||
return new ValidatorTypeGuesser($this->validator->getMetadataFactory());
|
||||
// 2.5 API
|
||||
if ($this->validator instanceof ValidatorInterface) {
|
||||
return new ValidatorTypeGuesser($this->validator);
|
||||
}
|
||||
|
||||
// 2.5 API - ValidatorInterface extends MetadataFactoryInterface
|
||||
return new ValidatorTypeGuesser($this->validator);
|
||||
// 2.4 API
|
||||
return new ValidatorTypeGuesser($this->validator->getMetadataFactory());
|
||||
}
|
||||
|
||||
protected function loadTypeExtensions()
|
||||
|
Reference in New Issue
Block a user