kekrozsak/vendor/symfony/symfony/src/Symfony/Component/Locale/README.md

23 lines
638 B
Markdown
Raw Normal View History

Locale Component
================
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->registerPrefixFallback(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs');
}
Resources
---------
You can run the unit tests with the following command:
phpunit