Skip to content

Commit 73e634e

Browse files
[FrameworkBundle] Don't use Email::VALIDATION_MODES in Configuration
1 parent 4a0c864 commit 73e634e

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
@@ -45,7 +45,6 @@
4545
use Symfony\Component\Serializer\Serializer;
4646
use Symfony\Component\Translation\Translator;
4747
use Symfony\Component\Uid\Factory\UuidFactory;
48-
use Symfony\Component\Validator\Constraints\Email;
4948
use Symfony\Component\Validator\Validation;
5049
use Symfony\Component\Webhook\Controller\WebhookController;
5150
use Symfony\Component\WebLink\HttpHeaderSerializer;
@@ -1067,7 +1066,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode, callable $e
10671066
->validate()->castToArray()->end()
10681067
->end()
10691068
->scalarNode('translation_domain')->defaultValue('validators')->end()
1070-
->enumNode('email_validation_mode')->values(array_merge(class_exists(Email::class) ? Email::VALIDATION_MODES : ['html5-allow-no-tld', 'html5', 'strict'], ['loose']))->end()
1069+
->enumNode('email_validation_mode')->values(['html5', 'html5-allow-no-tld', 'strict', 'loose'])->end()
10711070
->arrayNode('mapping')
10721071
->addDefaultsIfNotSet()
10731072
->fixXmlConfig('path')

0 commit comments

Comments
 (0)