Skip to content

Commit 4c63be4

Browse files
Merge branch '6.4' into 7.2
* 6.4: [FrameworkBundle] Don't use Email::VALIDATION_MODES in Configuration
2 parents 1c69008 + 73e634e commit 4c63be4

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
@@ -46,7 +46,6 @@
4646
use Symfony\Component\Translation\Translator;
4747
use Symfony\Component\TypeInfo\Type;
4848
use Symfony\Component\Uid\Factory\UuidFactory;
49-
use Symfony\Component\Validator\Constraints\Email;
5049
use Symfony\Component\Validator\Validation;
5150
use Symfony\Component\Webhook\Controller\WebhookController;
5251
use Symfony\Component\WebLink\HttpHeaderSerializer;
@@ -1020,7 +1019,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode, callable $e
10201019
->validate()->castToArray()->end()
10211020
->end()
10221021
->scalarNode('translation_domain')->defaultValue('validators')->end()
1023-
->enumNode('email_validation_mode')->values(array_merge(class_exists(Email::class) ? Email::VALIDATION_MODES : ['html5-allow-no-tld', 'html5', 'strict'], ['loose']))->defaultValue('html5')->end()
1022+
->enumNode('email_validation_mode')->values(['html5', 'html5-allow-no-tld', 'strict', 'loose'])->defaultValue('html5')->end()
10241023
->arrayNode('mapping')
10251024
->addDefaultsIfNotSet()
10261025
->fixXmlConfig('path')

0 commit comments

Comments
 (0)