Fix the implementation of deprecated Locale classes
The ICU component does not exist anymore.
This commit is contained in:
parent
0469ea82b1
commit
eb0637f675
@ -11,7 +11,6 @@
|
||||
|
||||
namespace Symfony\Component\Locale;
|
||||
|
||||
use Symfony\Component\Icu\IcuData;
|
||||
use Symfony\Component\Intl\Intl;
|
||||
|
||||
/**
|
||||
@ -173,7 +172,7 @@ class Locale extends \Locale
|
||||
*/
|
||||
public static function getIcuDataDirectory()
|
||||
{
|
||||
return IcuData::getResourceDirectory();
|
||||
return Intl::getDataDirectory();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
namespace Symfony\Component\Locale\Stub;
|
||||
|
||||
use Symfony\Component\Icu\IcuData;
|
||||
use Symfony\Component\Intl\Intl;
|
||||
use Symfony\Component\Intl\Locale\Locale;
|
||||
|
||||
@ -86,7 +85,7 @@ class StubLocale extends Locale
|
||||
|
||||
public static function getDataDirectory()
|
||||
{
|
||||
return IcuData::getResourceDirectory();
|
||||
return Intl::getDataDirectory();
|
||||
}
|
||||
|
||||
private static function prepareCurrencies($locale)
|
||||
|
Reference in New Issue
Block a user