|
il y a 13 ans | |
---|---|---|
.. | ||
Exception | il y a 14 ans | |
Resources | il y a 14 ans | |
Stub | il y a 13 ans | |
LICENSE | il y a 14 ans | |
Locale.php | il y a 13 ans | |
README.md | il y a 13 ans | |
composer.json | il y a 13 ans |
Locale provides fallback code to handle cases when the intl
extension is
missing.
Loading the fallback classes for example using the ClassLoader component only requires adding the following lines to your autoloader:
// intl
if (!function_exists('intl_get_error_code')) {
require __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
$loader->registerPrefixFallbacks(array(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs'));
}
Unit tests:
https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/Locale