Fix the implementation of deprecated Locale classes

The ICU component does not exist anymore.
This commit is contained in:
Christophe Coevoet 2014-12-30 09:06:31 +01:00
parent 0469ea82b1
commit eb0637f675
2 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@
namespace Symfony\Component\Locale; namespace Symfony\Component\Locale;
use Symfony\Component\Icu\IcuData;
use Symfony\Component\Intl\Intl; use Symfony\Component\Intl\Intl;
/** /**
@ -173,7 +172,7 @@ class Locale extends \Locale
*/ */
public static function getIcuDataDirectory() public static function getIcuDataDirectory()
{ {
return IcuData::getResourceDirectory(); return Intl::getDataDirectory();
} }
/** /**

View File

@ -11,7 +11,6 @@
namespace Symfony\Component\Locale\Stub; namespace Symfony\Component\Locale\Stub;
use Symfony\Component\Icu\IcuData;
use Symfony\Component\Intl\Intl; use Symfony\Component\Intl\Intl;
use Symfony\Component\Intl\Locale\Locale; use Symfony\Component\Intl\Locale\Locale;
@ -86,7 +85,7 @@ class StubLocale extends Locale
public static function getDataDirectory() public static function getDataDirectory()
{ {
return IcuData::getResourceDirectory(); return Intl::getDataDirectory();
} }
private static function prepareCurrencies($locale) private static function prepareCurrencies($locale)