fea6b79acd
This is the first step to make each Symfony Component and Bridge self-contained.
671 B
671 B
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 -c src/Symfony/Component/Locale/