8000 [FrameworkBundle] remove enabled keywords. · symfony/symfony@bb318b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb318b5

Browse files
author
Hugo Hamon
committed
[FrameworkBundle] remove enabled keywords.
1 parent e5f7901 commit bb318b5

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/csrf.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
<?php
22

33
$container->loadFromExtension('framework', array(
4-
'csrf_protection' => array(
5-
'enabled' => false,
6-
),
4+
'csrf_protection' => true,
75
'form' => array(
86
'enabled' => true,
9-
'csrf_protection' => array(
10-
'enabled' => true,
11-
'field_name' => '_token',
12-
),
7+
'csrf_protection' => true,
138
),
149
'session' => array(
1510
'handler_id' => null,

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/csrf.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<framework:csrf-protection enabled="false" />
1111

1212
<framework:form>
13-
<framework:csrf-protection enabled="true" field-name="_token" />
13+
<framework:csrf-protection />
1414
</framework:form>
1515

1616
<framework:session />

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/csrf.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ framework:
22
csrf_protection: false
33
secret: s3cr3t
44
form:
5-
csrf_protection:
6-
enabled: true
7-
field_name: _token
5+
csrf_protection: true
86
session: ~
97
# CSRF is disabled by default
108
# csrf_protection: ~

0 commit comments

Comments
 (0)
0