This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Locale
2012-03-31 18:00:32 -03:00
..
Exception [Phpdoc] Cleaning/fixing 2011-04-23 15:18:47 +00:00
Resources [Locale] fixed CS 2011-06-24 01:49:48 +02:00
Stub [WIP][Locale] StubIntlDateFormatter::parse was throwing exception instead of returning Boolean false like intl implementation 2012-02-14 01:35:14 -02:00
Tests updated license blocks 2012-03-31 18:00:32 -03:00
composer.json Removed version field 2012-02-27 09:59:20 +01:00
LICENSE Updated LICENSE files copyright 2012-02-22 10:10:37 +01:00
Locale.php merged 2.0 2012-03-11 18:00:10 +01:00
phpunit.xml.dist [PhpUnit] Fix the path to the boostrap files in the components 2012-03-30 13:49:28 +02:00
README.md moved component and bridge unit tests to the src/ directory 2012-03-29 08:37:22 +02:00

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/