Now we know how to output a flag from a country code let’s create a new Symfony form type, the EmojiType ✨
1- Create the FormType 🖊
The EmojiTypeshould extend the AbstractType and define the method getParent that returns CountryType to take benefit of the CountryType configuration (options, select…). We also add our helper that transforms a country code into an emoji.