File tree 4 files changed +0
-20
lines changed
Filter options
src/Symfony/Component/Form/Extension/Core/Type 4 files changed +0
-20
lines changed
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Form \ChoiceList \ArrayChoiceList ;
16
16
use Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface ;
17
17
use Symfony \Component \Form \ChoiceList \Loader \IntlCallbackChoiceLoader ;
18
- use Symfony \Component \Form \Exception \LogicException ;
19
18
use Symfony \Component \Intl \Intl ;
20
19
use Symfony \Component \OptionsResolver \Options ;
21
20
use Symfony \Component \OptionsResolver \OptionsResolver ;
@@ -42,10 +41,6 @@ public function configureOptions(OptionsResolver $resolver)
42
41
{
43
42
$ resolver ->setDefaults (array (
44
43
'choice_loader ' => function (Options $ options ) {
45
- if (!class_exists (Intl::class)) {
46
- throw new LogicException (sprintf ('The "symfony/intl" component is required to use "%s". ' , static ::class));
47
- }
48
-
49
44
$ choiceTranslationLocale = $ options ['choice_translation_locale ' ];
50
45
51
46
return new IntlCallbackChoiceLoader (function () use ($ choiceTranslationLocale ) {
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Form \ChoiceList \ArrayChoiceList ;
16
16
use Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface ;
17
17
use Symfony \Component \Form \ChoiceList \Loader \IntlCallbackChoiceLoader ;
18
- use Symfony \Component \Form \Exception \LogicException ;
19
18
use Symfony \Component \Intl \Intl ;
20
19
use Symfony \Component \OptionsResolver \Options ;
21
20
use Symfony \Component \OptionsResolver \OptionsResolver ;
@@ -42,10 +41,6 @@ public function configureOptions(OptionsResolver $resolver)
42
41
{
43
42
$ resolver ->setDefaults (array (
44
43
'choice_loader ' => function (Options $ options ) {
45
- if (!class_exists (Intl::class)) {
46
- throw new LogicException (sprintf ('The "symfony/intl" component is required to use "%s". ' , static ::class));
47
- }
48
-
49
44
$ choiceTranslationLocale = $ options ['choice_translation_locale ' ];
50
45
51
46
return new IntlCallbackChoiceLoader (function () use ($ choiceTranslationLocale ) {
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Form \ChoiceList \ArrayChoiceList ;
16
16
use Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface ;
17
17
use Symfony \Component \Form \ChoiceList \Loader \IntlCallbackChoiceLoader ;
18
- use Symfony \Component \Form \Exception \LogicException ;
19
18
use Symfony \Component \Intl \Intl ;
20
19
use Symfony \Component \OptionsResolver \Options ;
21
20
use Symfony \Component \OptionsResolver \OptionsResolver ;
@@ -42,10 +41,6 @@ public function configureOptions(OptionsResolver $resolver)
42
41
{
43
42
$ resolver ->setDefaults (array (
44
43
'choice_loader ' => function (Options $ options ) {
45
- if (!class_exists (Intl::class)) {
46
- throw new LogicException (sprintf ('The "symfony/intl" component is required to use "%s". ' , static ::class));
47
- }
48
-
49
44
$ choiceTranslationLocale = $ options ['choice_translation_locale ' ];
50
45
51
46
return new IntlCallbackChoiceLoader (function () use ($ choiceTranslationLocale ) {
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Form \ChoiceList \ArrayChoiceList ;
16
16
use Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface ;
17
17
use Symfony \Component \Form \ChoiceList \Loader \IntlCallbackChoiceLoader ;
18
- use Symfony \Component \Form \Exception \LogicException ;
19
18
use Symfony \Component \Intl \Intl ;
20
19
use Symfony \Component \OptionsResolver \Options ;
21
20
use Symfony \Component \OptionsResolver \OptionsResolver ;
@@ -42,10 +41,6 @@ public function configureOptions(OptionsResolver $resolver)
42
41
{
43
42
$ resolver ->setDefaults (array (
44
43
'choice_loader ' => function (Options $ options ) {
45
- if (!class_exists (Intl::class)) {
46
- throw new LogicException (sprintf ('The "symfony/intl" component is required to use "%s". ' , static ::class));
47
- }
48
-
49
44
$ choiceTranslationLocale = $ options ['choice_translation_locale ' ];
50
45
51
46
return new IntlCallbackChoiceLoader (function () use ($ choiceTranslationLocale ) {
You can’t perform that action at this time.
0 commit comments