@@ -19,6 +19,12 @@ UPGRADE FROM 2.x to 3.0
19
19
* The ` DebugUniversalClassLoader ` class has been removed in favor of
20
20
` DebugClassLoader ` . The difference is that the constructor now takes a
21
21
loader to wrap.
22
+ ```
23
+
24
+ ### Config
25
+
26
+ * The `__toString()` method of the `\Symfony\Component\Config\ConfigCache` class
27
+ was removed in favor of the new `getPath()` method.
22
28
23
29
### Console
24
30
@@ -99,13 +105,38 @@ UPGRADE FROM 2.x to 3.0
99
105
removed: ` ContainerBuilder::synchronize() ` , ` Definition::isSynchronized() ` ,
100
106
and ` Definition::setSynchronized() ` .
101
107
108
+ ### DoctrineBridge
109
+
110
+ * The ` property ` option of ` DoctrineType ` was removed in favor of the ` choice_label ` option.
111
+
112
+ * The ` loader ` option of ` DoctrineType ` was removed. You now have to override the ` getLoader() `
113
+ method in your custom type.
114
+
115
+ * The ` Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList ` was removed in favor
116
+ of ` Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader ` .
117
+
118
+ * Passing a query builder closure to ` ORMQueryBuilderLoader ` is not supported anymore.
119
+ You should pass resolved query builders only.
120
+
121
+ Consequently, the arguments ` $manager ` and ` $class ` of ` ORMQueryBuilderLoader `
122
+ have been removed as well.
123
+
124
+ Note that the ` query_builder ` option of ` DoctrineType ` * does* support
125
+ closures, but the closure is now resolved in the type instead of in the
126
+ loader.
127
+
102
128
### EventDispatcher
103
129
104
130
* The interface ` Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface `
105
131
extends ` Symfony\Component\EventDispatcher\EventDispatcherInterface ` .
106
132
107
133
### Form
108
134
135
+ * The ` ChoiceToBooleanArrayTransformer ` , ` ChoicesToBooleanArrayTransformer ` ,
136
+ ` FixRadioInputListener ` , and ` FixCheckboxInputListener ` classes were removed.
137
+
138
+ * The ` choice_list ` option of ` ChoiceType ` was removed.
139
+
109
140
* The option "precision" was renamed to "scale".
110
141
111
142
Before:
@@ -271,11 +302,11 @@ UPGRADE FROM 2.x to 3.0
271
302
` NumberToLocalizedStringTransformer ` were renamed to ` ROUND_HALF_EVEN ` ,
272
303
` ROUND_HALF_UP ` and ` ROUND_HALF_DOWN ` .
273
304
274
- * The methods ` ChoiceListInterface::getIndicesForChoices() ` and
275
- ` ChoiceListInterface::getIndicesForValues() ` were removed. No direct
276
- replacement exists, although in most cases
277
- ` ChoiceListInterface::getChoicesForValues() ` and
278
- ` ChoiceListInterface::getValuesForChoices() ` should be sufficient .
305
+ * The ` Symfony\Component\Form\Extension\Core\ChoiceList\ ChoiceListInterface` was
306
+ removed in favor of ` Symfony\Component\Form\ChoiceList\ChoiceListInterface ` .
307
+
308
+ * ` Symfony\Component\Form\Extension\Core\View\ChoiceView ` was removed in favor of
309
+ ` Symfony\Component\Form\ChoiceList\View\ChoiceView ` .
279
310
280
311
* The interface ` Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface `
281
312
and all of its implementations were removed. Use the new interface
@@ -544,7 +575,7 @@ UPGRADE FROM 2.x to 3.0
544
575
545
576
* Some route settings have been renamed:
546
577
547
- * The `pattern` setting for a route has been deprecated in favor of `path`
578
+ * The `pattern` setting has been removed in favor of `path`
548
579
* The `_scheme` and `_method` requirements have been moved to the `schemes` and `methods` settings
549
580
550
581
Before :
@@ -597,10 +628,23 @@ UPGRADE FROM 2.x to 3.0
597
628
the performance gains were minimal and it's hard to replicate the behaviour
598
629
of PHP implementation.
599
630
631
+ * The `getMatcherDumperInstance()` and `getGeneratorDumperInstance()` methods in the
632
+ ` Symfony\C omponent\R outing\R outer` have been changed from `public` to `protected`.
633
+
600
634
# ## Security
601
635
602
636
* The `Resources/` directory was moved to `Core/Resources/`
603
637
638
+ # ## Serializer
639
+
640
+ * The `setCamelizedAttributes()` method of the
641
+ ` Symfony\C omponent\S erializer\N ormalizer\G etSetMethodNormalizer` and
642
+ ` Symfony\C omponent\S erializer\N ormalizer\P ropertyNormalizer` classes
643
+ was removed.
644
+
645
+ * The `Symfony\Component\Serializer\Exception\Exception` interface was removed
646
+ in favor of the new `Symfony\Component\Serializer\Exception\ExceptionInterface`.
647
+
604
648
# ## Translator
605
649
606
650
* The `Translator::setFallbackLocale()` method has been removed in favor of
@@ -665,11 +709,18 @@ UPGRADE FROM 2.x to 3.0
665
709
666
710
# ## TwigBundle
667
711
712
+ * The `Symfony\Bundle\TwigBundle\TwigDefaultEscapingStrategy` was removed
713
+ in favor of `Twig_FileExtensionEscapingStrategy`.
714
+
668
715
* The `twig:debug` command has been deprecated since Symfony 2.7 and will be
669
716
removed in Symfony 3.0. Use the `debug:twig` command instead.
670
717
671
718
# ## Validator
672
719
720
+ * The PHP7-incompatible constraints (`Null`, `True`, `False`) and their related
721
+ validators (`NullValidator`, `TrueValidator`, `FalseValidator`) have been
722
+ removed in favor of their `Is`-prefixed equivalent.
723
+
673
724
* The class `Symfony\Component\Validator\Mapping\Cache\ApcCache` has been removed in favor
674
725
of `Symfony\Component\Validator\Mapping\Cache\DoctrineCache`.
675
726
0 commit comments