Open
Description
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
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
.