We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
symfony/intl has quite a few static methods. It would be nice if things were less static so dependencies could be injected and classes be decorated.
static
This could be useful for things like tweaking the locales data without editing/patching files in vendor/symfony/intl/Resources/data (yuck!).
vendor/symfony/intl/Resources/data
namespace Symfony\Component\Intl; // Maybe an interface to allow decoration? final class Locales implements LocalesInterface { // Injectable BundleEntryReader, supply your own data! public function __construct(private BundleEntryReader $entryReader) {} // etc etc }
Same for the other similar classes like Currencies.
Currencies
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
symfony/intl has quite a few static methods. It would be nice if things were less
static
so dependencies could be injected and classes be decorated.This could be useful for things like tweaking the locales data without editing/patching files in
vendor/symfony/intl/Resources/data
(yuck!).Example
Same for the other similar classes like
Currencies
.The text was updated successfully, but these errors were encountered: