[Form] Adapted to latest Intl changes

This commit is contained in:
Bernhard Schussek 2013-03-15 16:17:03 +01:00
parent 0f6277f809
commit f2a0aec49e
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ class CountryType extends AbstractType
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'choices' => Intl::getRegionBundle()->getCountryNames(\Locale::getDefault()),
'choices' => Intl::getRegionBundle()->getCountryNames(),
));
}

View File

@ -24,7 +24,7 @@ class LanguageType extends AbstractType
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'choices' => Intl::getLanguageBundle()->getLanguageNames(\Locale::getDefault()),
'choices' => Intl::getLanguageBundle()->getLanguageNames(),
));
}

View File

@ -24,7 +24,7 @@ class LocaleType extends AbstractType
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'choices' => Intl::getLocaleBundle()->getLocaleNames(\Locale::getDefault()),
'choices' => Intl::getLocaleBundle()->getLocaleNames(),
));
}