Upgrade the CmsGui module
Edit on GitHubUpgrading from version 4.* to version 5.*
Version 5 of the CMSGui
module introduces the multi-store functionality. The multi-store CMS page feature enables management of CMS page display per store via a store toggle control in the Back Office.
To enable the feature, make sure you have the store relation type plugin. See below for details.
Estimated migration time: 30 minutes.
To upgrade to the new version of the module, do the following:
- Require the update using Composer:
"spryker/cms-gui": "^5.0.0"
- Add the Store Relation Form Type Plugin:
src/Pyz/Zed/CmsGui/CmsGuiDependencyProvider.php
use Spryker\Zed\Kernel\Communication\Form\FormTypeInterface;
use Spryker\Zed\Store\Communication\Plugin\Form\StoreRelationToggleFormTypePlugin;
class CmsGuiDependencyProvider extends SprykerCmsGuiDependencyProvider
{
/**
* @return \Spryker\Zed\Kernel\Communication\Form\FormTypeInterface
*/
protected function getStoreRelationFormTypePlugin(): FormTypeInterface
{
return new StoreRelationToggleFormTypePlugin();
}
}
New transfers must be generated:
$ console transfer:generate
- If project overrides were introduced, please observe the following changes:
CmsGuiCommunicationFactory::createCmsVersionForm
was deprecated, please useCmsGuiCommunicationFactory::getCmsVersionForm
.CmsGuiCommunicationFactory::createCmsGlossaryForm
was deprecated, please useCmsGuiCommunicationFactory::getCmsGlossaryForm
.CmsVersionMapper::mapToCmsVersionDataTransfer
was given return typeCmsVersionMapper::CmsVersionDataTransfer
Thank you!
For submitting the form