]> Raphaël G. Git Repositories - blog/commitdiff
Import csrf and property_info packages yaml files
authorRaphaël Gertz <git@rapsys.eu>
Mon, 13 Oct 2025 11:41:49 +0000 (13:41 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 13 Oct 2025 11:41:49 +0000 (13:41 +0200)
config/packages/csrf.yaml [new file with mode: 0644]
config/packages/property_info.yaml [new file with mode: 0644]

diff --git a/config/packages/csrf.yaml b/config/packages/csrf.yaml
new file mode 100644 (file)
index 0000000..40d4040
--- /dev/null
@@ -0,0 +1,11 @@
+# Enable stateless CSRF protection for forms and logins/logouts
+framework:
+    form:
+        csrf_protection:
+            token_id: submit
+
+    csrf_protection:
+        stateless_token_ids:
+            - submit
+            - authenticate
+            - logout
diff --git a/config/packages/property_info.yaml b/config/packages/property_info.yaml
new file mode 100644 (file)
index 0000000..dd31b9d
--- /dev/null
@@ -0,0 +1,3 @@
+framework:
+    property_info:
+        with_constructor_extractor: true