Skip to content

Commit 53a8fe0

Browse files
committed
Document usage with FOS UserBundle
Or, more presicely, with the login form.
1 parent 63a670d commit 53a8fe0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Resources/doc/body_listener.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,18 @@ If you want form data to be normalized, you can use the ``forms`` flag:
9393
array_normalizer:
9494
service: fos_rest.normalizer.camel_keys
9595
forms: true
96+
97+
Using the ArrayNormalizer with login forms
98+
------------------------------------------
99+
100+
If you use the default configuration for the csrf token fieldname (`_csrf_token`) the Array normalizer will mangle the field name. To make it work, use a name that is camelcased, like this:
101+
102+
```yaml
103+
security:
104+
firewalls:
105+
admin:
106+
...
107+
form_login:
108+
..
109+
csrf_parameter: _csrfToken
110+
```

0 commit comments

Comments
 (0)