You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE-3.0.md
+20-10Lines changed: 20 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -264,12 +264,12 @@ UPGRADE FROM 2.x to 3.0
264
264
// ...
265
265
}
266
266
```
267
-
267
+
268
268
* The option "options" of the CollectionType has been renamed to "entry_options".
269
269
270
270
* The option "type" of the CollectionType has been renamed to "entry_type".
271
-
As a value for the option you must provide the fully-qualified class name (FQCN)
272
-
now as well.
271
+
As a value for the option you must provide the fully-qualified class name (FQCN)
272
+
now as well.
273
273
274
274
* The `FormIntegrationTestCase` and `FormPerformanceTestCase` classes were moved form the `Symfony\Component\Form\Tests` namespace to the `Symfony\Component\Form\Test` namespace.
275
275
@@ -317,8 +317,8 @@ UPGRADE FROM 2.x to 3.0
317
317
318
318
* The `Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList` class has been removed in
319
319
favor of `Symfony\Component\Form\ChoiceList\ArrayChoiceList`.
320
-
321
-
* The `TimezoneType::getTimezones()` method was removed. You should not use
320
+
321
+
* The `TimezoneType::getTimezones()` method was removed. You should not use
322
322
this method.
323
323
324
324
* The `Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList` class has been removed in
@@ -365,11 +365,11 @@ UPGRADE FROM 2.x to 3.0
365
365
}
366
366
}
367
367
```
368
-
368
+
369
369
* In Symfony 2.7 a small BC break was introduced with the new choices_as_values
370
370
option. In order to have the choice values populated to the html value attribute
371
371
you had to define the choice_value option. This is now not any more needed.
372
-
372
+
373
373
Before:
374
374
375
375
```php
@@ -389,9 +389,9 @@ UPGRADE FROM 2.x to 3.0
389
389
},
390
390
));
391
391
```
392
-
392
+
393
393
After:
394
-
394
+
395
395
```php
396
396
$form->add('status', ChoiceType::class, array(
397
397
'choices' => array(
@@ -400,7 +400,7 @@ UPGRADE FROM 2.x to 3.0
400
400
'Ignored' => Status::IGNORED,
401
401
)
402
402
));
403
-
```
403
+
```
404
404
405
405
* The `request` service was removed. You must inject the `request_stack`
406
406
service instead.
@@ -774,6 +774,16 @@ UPGRADE FROM 2.x to 3.0
774
774
}
775
775
```
776
776
777
+
* The `intention` option was renamed to `csrf_token_id` for all the authentication listeners.
778
+
779
+
* The `csrf_provider` option was renamed to `csrf_token_generator` for all the authentication listeners.
780
+
781
+
### SecurityBundle
782
+
783
+
* The `intention` firewall listener setting was renamed to `csrf_token_id`.
784
+
785
+
* The `csrf_provider` firewall listener setting was renamed to `csrf_token_generator`.
786
+
777
787
### Translator
778
788
779
789
* The `Translator::setFallbackLocale()` method has been removed in favor of
0 commit comments