c1959571ac
* Switched to Composer to manage "dev" dependencies * Fixed READMEs * Excluded vendor in phpunit.xml.dist files * Fixed message in bootstrap.php files * Added autoloader for the component itself
638 B
638 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