File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
$ container ->loadFromExtension ('framework ' , array (
4
- 'csrf_protection ' => array (
5
- 'enabled ' => false ,
6
- ),
4
+ 'csrf_protection ' => true ,
7
5
'form ' => array (
8
6
'enabled ' => true ,
9
- 'csrf_protection ' => array (
10
- 'enabled ' => true ,
11
- 'field_name ' => '_token ' ,
12
- ),
7
+ 'csrf_protection ' => true ,
13
8
),
14
9
'session ' => array (
15
10
'handler_id ' => null ,
Original file line number Diff line number Diff line change 10
10
<framework : csrf-protection enabled =" false" />
11
11
12
12
<framework : form >
13
- <framework : csrf-protection enabled = " true " field-name = " _token " />
13
+ <framework : csrf-protection />
14
14
</framework : form >
15
15
16
16
<framework : session />
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ framework:
2
2
csrf_protection : false
3
3
secret : s3cr3t
4
4
form :
5
- csrf_protection :
6
- enabled : true
7
- field_name : _token
5
+ csrf_protection : true
8
6
session : ~
9
7
# CSRF is disabled by default
10
8
# csrf_protection: ~
You can’t perform that action at this time.
0 commit comments