File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## 2.23.0
4+
5+ - Deprecate ` ExtraLazyChoiceLoader ` in favor of ` Symfony\Component\Form\ChoiceList\Loader\LazyChoiceLoader `
6+
37## 2.22.0
48
59- Take ` labelField ` TomSelect option into account #2382
Original file line number Diff line number Diff line change 1313
1414use Symfony \Bridge \Doctrine \Form \Type \EntityType ;
1515use Symfony \Component \Form \AbstractType ;
16+ use Symfony \Component \Form \ChoiceList \Loader \LazyChoiceLoader ;
1617use Symfony \Component \Form \Exception \RuntimeException ;
1718use Symfony \Component \Form \FormBuilderInterface ;
1819use Symfony \Component \OptionsResolver \Options ;
@@ -42,6 +43,10 @@ public function configureOptions(OptionsResolver $resolver): void
4243 return null ;
4344 }
4445
46+ if (class_exists (LazyChoiceLoader::class)) {
47+ return new LazyChoiceLoader ($ loader );
48+ }
49+
4550 return new ExtraLazyChoiceLoader ($ loader );
4651 };
4752
Original file line number Diff line number Diff line change 1717
1818/**
1919 * Loads choices on demand only.
20+ *
21+ * @deprecated since Autocomplete 2.23 and will be removed in 3.0, use `Symfony\Component\Form\ChoiceList\Loader\LazyChoiceLoader` instead.
2022 */
2123class ExtraLazyChoiceLoader implements ChoiceLoaderInterface
2224{
You can’t perform that action at this time.
0 commit comments