Skip to content

Commit

Permalink
Merge pull request #26 from bolt/feature/country-field-type
Browse files Browse the repository at this point in the history
Add field type country
  • Loading branch information
bobdenotter authored Nov 19, 2020
2 parents 7203dae + fe2ba78 commit 8359b98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Factory/FieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\CountryType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\FileType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
Expand Down Expand Up @@ -47,6 +48,9 @@ public static function get($field): string
case 'datetime':
$type = DateTimeType::class;
break;
case 'country':
$type = CountryType::class;
break;
case 'text':
default:
$type = TextType::class;
Expand Down

0 comments on commit 8359b98

Please sign in to comment.