File tree Expand file tree Collapse file tree 4 files changed +0
-20
lines changed Expand file tree Collapse file tree 4 files changed +0
-20
lines changed Original file line number Diff line number Diff line change 1515use Symfony \Component \Form \ChoiceList \ArrayChoiceList ;
1616use Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface ;
1717use Symfony \Component \Form \ChoiceList \Loader \IntlCallbackChoiceLoader ;
18- use Symfony \Component \Form \Exception \LogicException ;
1918use Symfony \Component \Intl \Intl ;
2019use Symfony \Component \OptionsResolver \Options ;
2120use Symfony \Component \OptionsResolver \OptionsResolver ;
@@ -42,10 +41,6 @@ public function configureOptions(OptionsResolver $resolver)
4241 {
4342 $ resolver ->setDefaults (array (
4443 '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-
4944 $ choiceTranslationLocale = $ options ['choice_translation_locale ' ];
5045
5146 return new IntlCallbackChoiceLoader (function () use ($ choiceTranslationLocale ) {
Original file line number Diff line number Diff line change 1515use Symfony \Component \Form \ChoiceList \ArrayChoiceList ;
1616use Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface ;
1717use Symfony \Component \Form \ChoiceList \Loader \IntlCallbackChoiceLoader ;
18- use Symfony \Component \Form \Exception \LogicException ;
1918use Symfony \Component \Intl \Intl ;
2019use Symfony \Component \OptionsResolver \Options ;
2120use Symfony \Component \OptionsResolver \OptionsResolver ;
@@ -42,10 +41,6 @@ public function configureOptions(OptionsResolver $resolver)
4241 {
4342 $ resolver ->setDefaults (array (
4443 '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-
4944 $ choiceTranslationLocale = $ options ['choice_translation_locale ' ];
5045
5146 return new IntlCallbackChoiceLoader (function () use ($ choiceTranslationLocale ) {
Original file line number Diff line number Diff line change 1515use Symfony \Component \Form \ChoiceList \ArrayChoiceList ;
1616use Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface ;
1717use Symfony \Component \Form \ChoiceList \Loader \IntlCallbackChoiceLoader ;
18- use Symfony \Component \Form \Exception \LogicException ;
1918use Symfony \Component \Intl \Intl ;
2019use Symfony \Component \OptionsResolver \Options ;
2120use Symfony \Component \OptionsResolver \OptionsResolver ;
@@ -42,10 +41,6 @@ public function configureOptions(OptionsResolver $resolver)
4241 {
4342 $ resolver ->setDefaults (array (
4443 '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-
4944 $ choiceTranslationLocale = $ options ['choice_translation_locale ' ];
5045
5146 return new IntlCallbackChoiceLoader (function () use ($ choiceTranslationLocale ) {
Original file line number Diff line number Diff line change 1515use Symfony \Component \Form \ChoiceList \ArrayChoiceList ;
1616use Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface ;
1717use Symfony \Component \Form \ChoiceList \Loader \IntlCallbackChoiceLoader ;
18- use Symfony \Component \Form \Exception \LogicException ;
1918use Symfony \Component \Intl \Intl ;
2019use Symfony \Component \OptionsResolver \Options ;
2120use Symfony \Component \OptionsResolver \OptionsResolver ;
@@ -42,10 +41,6 @@ public function configureOptions(OptionsResolver $resolver)
4241 {
4342 $ resolver ->setDefaults (array (
4443 '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-
4944 $ choiceTranslationLocale = $ options ['choice_translation_locale ' ];
5045
5146 return new IntlCallbackChoiceLoader (function () use ($ choiceTranslationLocale ) {
You can’t perform that action at this time.
0 commit comments