public convertToPHPValue ( string $locale, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : |
||
$locale | string | |
$platform | Doctrine\DBAL\Platforms\AbstractPlatform | |
return |
public function convertToPHPValue($locale, AbstractPlatform $platform)
{
if (APPLICATION === 'frontend') {
return FrontendLocale::fromString($locale);
}
return BackendLocale::fromString($locale);
}