title | issue | author | author_email | author_github |
---|---|---|---|---|
Remove core dependencies from ContextController |
NEXT-21967 |
Stefan Sluiter |
ssltg |
- Added
Shopware\Core\Checkout\Customer\SalesChannel\AbstractChangeLanguageRoute
- Added
Shopware\Core\Checkout\Customer\SalesChannel\ChangeLanguageRoute
- Added new store-api route
/account/change-language
- Changed
\Shopware\Core\System\SalesChannel\SalesChannel\ContextSwitchRoute::switchContext
to check return the new domain on language change. - Added
getRedirectUrl
toShopware\Core\System\SalesChannel\ContextTokenResponse
to hold the redirectUrl in a token change if necessary.
- Changed
Shopware\Storefront\Controller\ContextController
to useChangeLanguageRoute
andContextSwitchRoute
instead of repositories. - Deprecated
ChangeLanguageRoute
inShopware\Storefront\Controller\ContextController
. This will be removed in v6.5.0.0. - Deprecated the automatic change of the customers language on the change of the storefront language in
\Shopware\Storefront\Controller\ContextController::switchLanguage