minor #13165 Fix the implementation of deprecated Locale classes (stof)
This PR was merged into the 2.3 branch.
Discussion
----------
Fix the implementation of deprecated Locale classes
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
The ICU component does not exist anymore, but the BC layer was still referencing it.
Commits
-------
eb0637f
Fix the implementation of deprecated Locale classes
This commit is contained in:
commit
844741a192
@ -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