File tree 3 files changed +11
-0
lines changed 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## 2.23.0
4
+
5
+ - Deprecate ` ExtraLazyChoiceLoader ` in favor of ` Symfony\Component\Form\ChoiceList\Loader\LazyChoiceLoader `
6
+
3
7
## 2.22.0
4
8
5
9
- Take ` labelField ` TomSelect option into account #2382
Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \Bridge \Doctrine \Form \Type \EntityType ;
15
15
use Symfony \Component \Form \AbstractType ;
16
+ use Symfony \Component \Form \ChoiceList \Loader \LazyChoiceLoader ;
16
17
use Symfony \Component \Form \Exception \RuntimeException ;
17
18
use Symfony \Component \Form \FormBuilderInterface ;
18
19
use Symfony \Component \OptionsResolver \Options ;
@@ -42,6 +43,10 @@ public function configureOptions(OptionsResolver $resolver): void
42
43
return null ;
43
44
}
44
45
46
+ if (class_exists (LazyChoiceLoader::class)) {
47
+ return new LazyChoiceLoader ($ loader );
48
+ }
49
+
45
50
return new ExtraLazyChoiceLoader ($ loader );
46
51
};
47
52
Original file line number Diff line number Diff line change 17
17
18
18
/**
19
19
* 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.
20
22
*/
21
23
class ExtraLazyChoiceLoader implements ChoiceLoaderInterface
22
24
{
You can’t perform that action at this time.
0 commit comments