Upgrade the ProductReviewSearch module
Edit on GitHubUpgrading from version 1.3.* to version 1.4.*
Prerequisites
This migration guide is a part of the Search migration effort. Prior to upgarding this module, make sure you have completed all the steps from the Search Migration Guide.
To upgrade the module, do the following:
- Update the module using Composer:
composer update spryker/product-review-search
- Remove the usage of deprecated
Spryker\Zed\ProductReviewSearch\Communication\Plugin\PageMapExpander\ProductReviewMapExpanderPlugin
fromPyz\Zed\ProductPageSearch\ProductPageSearchDependencyProvider
. - Enable the replacement plugin:
<?php
namespace Pyz\Zed\ProductPageSearch;
...
use Spryker\Zed\ProductReviewSearch\Communication\Plugin\ProductPageSearch\Elasticsearch\ProductReviewMapExpanderPlugin;
use Spryker\Zed\ProductPageSearch\ProductPageSearchDependencyProvider as SprykerProductPageSearchDependencyProvider;
class ProductPageSearchDependencyProvider extends SprykerProductPageSearchDependencyProvider
{
...
/**
* @return \Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductAbstractMapExpanderPluginInterface[]
*/
protected function getProductAbstractMapExpanderPlugins(): array
{
return [
...
new ProductReviewMapExpanderPlugin(),
];
}
}
Thank you!
For submitting the form