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:
Fabien Potencier 2014-12-30 09:48:31 +01:00
commit 844741a192
2 changed files with 2 additions and 4 deletions

View File

@ -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();
}
/**

View File

@ -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)