Migration guide - ProductConfiguratorGatewayPage
Edit on GitHubUpgrading 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
- Re-generate 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 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