Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 2 KB

2021-10-05-add-language-locale-provider.md

File metadata and controls

22 lines (21 loc) · 2 KB
title issue
Add LanguageLocaleProvider
NEXT-10606

Core

  • Added \Shopware\Core\System\Locale\LanguageLocaleCodeProvider to fetch locales for languageIds.
  • Changed \Shopware\Core\Content\Flow\Dispatching\Action\SendMailAction to use new LanguageLocaleCodeProvider, instead of fetching locales manually.
  • Changed \Shopware\Core\Content\MailTemplate\Subscriber\MailSendSubscriber to use new LanguageLocaleCodeProvider, instead of fetching locales manually.
  • Changed \Shopware\Core\Content\Product\Cart\ProductFeatureBuilder to use new LanguageLocaleCodeProvider, instead of fetching locales manually.
  • Changed \Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportPartialGenerationHandler to use new LanguageLocaleCodeProvider, instead of fetching locales manually.
  • Changed \Shopware\Core\Content\ProductExport\Service\ProductExportGenerator to use new LanguageLocaleCodeProvider, instead of fetching locales manually.
  • Changed \Shopware\Core\Framework\Adapter\Translation\Translator to use new LanguageLocaleCodeProvider, instead of fetching locales manually.
  • Changed \Shopware\Core\Framework\App\AppLocaleProvider to use new LanguageLocaleCodeProvider, instead of fetching locales manually.
  • Changed \Shopware\Core\Framework\Store\Services\ExtensionLoader to use new LanguageLocaleCodeProvider, instead of fetching locales manually.
  • Changed \Shopware\Core\System\Currency\CurrencyFormatter to use new LanguageLocaleCodeProvider, instead of fetching locales manually.
  • Deprecated the protected properties in \Shopware\Core\Framework\Context, because they will be natively typed in the future. If you extend the Context class make sure to adhere to type constraints for those properties

Upgrade Information

Context`s properties will be natively typed

The properties of \Shopware\Core\Framework\Context will be natively typed in the future. If you extend the Context make sure your implementations adheres to the type constraints for the protected properties.