瀏覽代碼

validators recipe

François Drouhard 2 年之前
父節點
當前提交
c8b0525c77
共有 3 個文件被更改,包括 14 次插入9 次删除
  1. 0 4
      config/packages/test/validator.yaml
  2. 10 0
      config/packages/validator.yaml
  3. 4 5
      symfony.lock

+ 0 - 4
config/packages/test/validator.yaml

@@ -1,4 +0,0 @@
-framework:
-    validation:
-        # As of Symfony 4.3 you can disable the NotCompromisedPassword Validator
-        # disable_not_compromised_password: true

+ 10 - 0
config/packages/validator.yaml

@@ -1,3 +1,13 @@
 framework:
     validation:
         email_validation_mode: html5
+
+        # Enables validator auto-mapping support.
+        # For instance, basic validation constraints will be inferred from Doctrine's metadata.
+        #auto_mapping:
+        #    App\Entity\: []
+
+when@test:
+    framework:
+        validation:
+            not_compromised_password: false

+ 4 - 5
symfony.lock

@@ -534,15 +534,14 @@
         ]
     },
     "symfony/validator": {
-        "version": "4.1",
+        "version": "5.4",
         "recipe": {
             "repo": "github.com/symfony/recipes",
-            "branch": "master",
-            "version": "4.1",
-            "ref": "9a285e4ff3915c7cd086e9945f30591a926baf83"
+            "branch": "main",
+            "version": "5.3",
+            "ref": "c32cfd98f714894c4f128bb99aa2530c1227603c"
         },
         "files": [
-            "config/packages/test/validator.yaml",
             "config/packages/validator.yaml"
         ]
     },