title | issue |
---|---|
Make store request options exchangeable |
NEXT-12609 |
- Added abstract class
Shopware\Core\Framework\Store\Authentication\AbstractStoreRequestOptionsProvider
. - Added
Shopware\Core\Framework\Store\Authentication\StoreRequestOptionsProvider
to provide header and query parameter for store requests. - Added
Shopware\Core\Framework\Store\Authentication\FrwRequestOptionsProvider
to provide header and query parameters for first run wizard api. - Added
Shopware\Core\Framework\Store\Services\InstanceService
to provideshopwareVersion
andinstanceId
- Added
Shopware\Core\Framework\Store\Authentication\LocaleProvider
to provide the locale of the current user in requests. - Changed super class from
AbstractStoreController
toAbstractController
forFirstRunWizardController
. - Changed super class from
AbstractStoreController
toAbstractController
forStoreController
. - Changed behaviour of
FirstRunWizardClient::frwLogin
andFirstRunWizardClient::upgradeAccessToken
. Both update the users store token now automatically. - Changed behaviour of
StoreClient::loginWithShopwareId
. It updates the users store token now automatically. - Changed return type of
Shopware\Core\Framework\Store\Authentication\AbstractAuthenticationProvider::getUserStoreToken()
fromstring
to?string
- Changed return type of
Shopware\Core\Framework\Store\Authentication\AuthenticationProvider::getUserStoreToken()
fromstring
to?string
- Removed
final
keyword of constructor forShopware\Core\Framework\Store\Services\StoreClient
- Deprecated
Shopware\Core\Framework\Store\Services\StoreService::getDefaultQueryParameters
. UseShopware\Core\Framework\Store\Services\StoreService::getDefaultQueryParametersFromContext
instead. - Deprecated
Shopware\Core\Framework\Store\Services\StoreService::getShopwareVersion
. UseShopware\Core\Framework\Store\Services\InstanceService::getShopwareVersion
instead. - Deprecated
Shopware\Core\Framework\Store\Api\AbstractStoreController
. It will be removed without any replacement. - Deprecated
Shopware\Core\Framework\Store\Authentication\AbstractStoreRequestOptionsProvider::getDefaultQueryParameters
. In the future this function takes anContext
object as it's only parameter.