Upgrade the CmsStorage module
Edit on GitHubUpgrading from version 1.* to version 2.*
Version 2.0.0 of the CmsStorage
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.
The main BC breaking changes are:
- Synchronization behavior
- CMS Storage Dependency Provider return annotation
Estimated migration time: 30 minutes
To upgrade to the new version of the module, do the following:
- Update
cms-storage
to^2.0.0
with the command:
composer update spryker/cms-storage": "^2.0.0
- Remove
queue_pool=synchronizationPool
behavior fromspy_cms_page_storage
table.
src/Pyz/Zed/CmsStorage/Persistence/Propel/Schema/spy_cms_storage.schema.xml
<behavior name="synchronization">
<parameter name="queue_pool" value="synchronizationPool">
</behavior>
When completed, the above synchronization parameter should not be in the file.
- Make changes to the CMS Storage Dependency Provider:
The return annotation for
getContentWidgetDataExpander()
has been changed.CmsPageDataExpanderPluginInterface
was moved toCmsExtension
module and should be referenced as such.
src/Pyz/Zed/CmsStorage/CmsStorageDependencyProvider.php
class CmsStorageDependencyProvider extends SprykerCmsStorageDependencyProvider
{
/**
* @return \Spryker\Zed\CmsExtension\Dependency\Plugin\CmsPageDataExpanderPluginInterface[]
*/
protected function getContentWidgetDataExpander()
{
- Apply the database change:
$ console propel:install
- Generate the new transfers:
$ console transfer:generate
Thank you!
For submitting the form