Hi all,
With my intl-stub branch[1] it is possible now to use fake
implementations of \Locale and \NumberFormatter. Thanks to Eriksen
Costa for implementing them! The fake implementations only support the
"en" locale and a subset of all available methods and options. These
features correspond exactly to intl's implementation. If any
unsupported locale, method or option is used, an exception is thrown.
To enable the fake implementation, you need to include the following
code in your app/autoload.php:
$loader->registerPrefixFallback(array(
__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs',
));
Now Symfony will automatically load it on demand when the intl
extension is not loaded.
Igor Wiedler and Eriksen Costa are currently working on fake
implementations of \IntlDateFormatter and \Collator. If things go
well, these should be finished within the next two weeks.
Bernhard
[1] https://github.com/bschussek/symfony/commits/intl-stub
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en