Not sure if this is a bug or if I’m just doing something wrong, but when I attempt to format currency using \Pimcore\Localization\IntlFormatter as documented here: https://pimcore.com/docs/6.x/Development_Documentation/Multi_Language_i18n/Formatting_Service.html in my controller, I get an error message:
The "Pimcore\Localization\IntlFormatter" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.
I can get around it by setting in my services.yml:
Pimcore\Localization\IntlFormatter: public: true
I can’t imagine that’s the desired solution, however. Is there a better solution?