Upgrade the ProductConfiguratorGatewayPage module
Edit on GitHubUpgrading from version 0.5.* to version 1.0.*
Estimated migration time: 5 minutes
ProductConfiguratorGatewayPage
v1.0.0 introduces the following backward incompatible changes:
- Replaced
ProductConfigurationStorageClientInterface::findProductConfigurationInstanceBySku()
withProductConfigurationStorageClientInterface::getProductConfigurationInstanceCollection()
. - Replaced
ProductConfigurationStorageClientInterface::findProductConfigurationInstancesIndexedBySku()
withProductConfigurationStorageClientInterface::getProductConfigurationInstanceCollection()
.
To upgrade the ProductConfiguratorGatewayPage
module from version 0.5.* to version 1.0.*, do the following:
- Update the
ProductConfiguratorGatewayPage
module to version 1.0.0:
composer require "spryker-shop/product-configurator-gateaway-page":"^1.0.0" update-with-dependencies
- Generate transfers:
console transfer:generate
Upgrading from version 0.3.* to version 0.4.*
Estimated migration time: 10 minutes
To upgrade the ProductConfiguratorGatewayPage
module from version 0.3.* to version 0.4.*, do the following:
- Update the
ProductConfiguratorGatewayPage
module to version 0.4.0:
composer require spryker-shop/product-configurator-gateaway-page:"^0.4.0" --update-with-dependencies
- Regenerate transfer classes:
console transfer:generate
-
From
\Pyz\Yves\ProductConfiguratorGatewayPage\ProductConfiguratorGatewayPageDependencyProvider
, remove the plugin stack:\Pyz\Yves\ProductConfiguratorGatewayPage\ProductConfiguratorGatewayPageDependencyProvider::getProductConfiguratorGatewayBackUrlResolverStrategyPlugins()
. -
In
\Pyz\Yves\ProductConfiguratorGatewayPage\ProductConfiguratorGatewayPageDependencyProvider
, on the project level, register the new strategy plugins:
\Pyz\Yves\ProductConfiguratorGatewayPage\ProductConfiguratorGatewayPageDependencyProvider
<?php
namespace Pyz\Yves\ProductConfiguratorGatewayPage;
use SprykerShop\Yves\ProductConfiguratorGatewayPage\Plugin\ProductConfiguratorGatewayPage\ProductDetailPageProductConfiguratorRequestDataFormExpanderStrategyPlugin;
use SprykerShop\Yves\ProductConfiguratorGatewayPage\Plugin\ProductConfiguratorGatewayPage\ProductDetailPageProductConfiguratorRequestStrategyPlugin;
use SprykerShop\Yves\ProductConfiguratorGatewayPage\Plugin\ProductConfiguratorGatewayPage\ProductDetailPageProductConfiguratorResponseStrategyPlugin;
use SprykerShop\Yves\ProductConfiguratorGatewayPage\ProductConfiguratorGatewayPageDependencyProvider as SprykerProductConfiguratorGatewayPageDependencyProvider;
class ProductConfiguratorGatewayPageDependencyProvider extends SprykerProductConfiguratorGatewayPageDependencyProvider
{
/**
* @return \SprykerShop\Yves\ProductConfiguratorGatewayPageExtension\Dependency\Plugin\ProductConfiguratorRequestStrategyPluginInterface[]
*/
protected function getProductConfiguratorRequestPlugins(): array
{
return [
new ProductDetailPageProductConfiguratorRequestStrategyPlugin(),
];
}
/**
* @return \SprykerShop\Yves\ProductConfiguratorGatewayPageExtension\Dependency\Plugin\ProductConfiguratorResponseStrategyPluginInterface[]
*/
protected function getProductConfiguratorResponsePlugins(): array
{
return [
new ProductDetailPageProductConfiguratorResponseStrategyPlugin(),
];
}
/**
* @return \SprykerShop\Yves\ProductConfiguratorGatewayPageExtension\Dependency\Plugin\ProductConfiguratorRequestDataFormExpanderStrategyPluginInterface[]
*/
protected function getProductConfiguratorRequestDataFormExpanderStrategyPlugins(): array
{
return [
new ProductDetailPageProductConfiguratorRequestDataFormExpanderStrategyPlugin(),
];
}
}
Thank you!
For submitting the form