Skip to content

Commit bbd40a4

Browse files
Merge branch '7.2' into 7.3
* 7.2: [FrameworkBundle] Don't use Email::VALIDATION_MODES in Configuration
2 parents c241fc6 + 4c63be4 commit bbd40a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
use Symfony\Component\Translation\Translator;
4949
use Symfony\Component\TypeInfo\Type;
5050
use Symfony\Component\Uid\Factory\UuidFactory;
51-
use Symfony\Component\Validator\Constraints\Email;
5251
use Symfony\Component\Validator\Validation;
5352
use Symfony\Component\Webhook\Controller\WebhookController;
5453
use Symfony\Component\WebLink\HttpHeaderSerializer;
@@ -1096,7 +1095,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode, callable $e
10961095
->validate()->castToArray()->end()
10971096
->end()
10981097
->scalarNode('translation_domain')->defaultValue('validators')->end()
1099-
->enumNode('email_validation_mode')->values(array_merge(class_exists(Email::class) ? Email::VALIDATION_MODES : ['html5-allow-no-tld', 'html5', 'strict'], ['loose']))->defaultValue('html5')->end()
1098+
->enumNode('email_validation_mode')->values(['html5', 'html5-allow-no-tld', 'strict', 'loose'])->defaultValue('html5')->end()
11001099
->arrayNode('mapping')
11011100
->addDefaultsIfNotSet()
11021101
->fixXmlConfig('path')

0 commit comments

Comments
 (0)