sitewards/setup-magento2

Sitewards Setup模块的Magento 2桥接器

安装: 35

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 3

分支: 0

开放问题: 2

类型:magento2-module

v2.0.0 2017-02-10 13:49 UTC

This package is not auto-updated.

Last update: 2024-09-15 00:46:04 UTC


README

此Magento 2模块是Sitewards Setup系统的桥接器,允许在Magento 2中导入和导出内容和配置。

架构

本模块包含一个bin脚本和主模块页面仓库接口的实现架构

bin/setup

  • 将Magento 2桥接器注入主应用,
  • 运行主应用,

Application/Bridge.php

  • 初始化Magento2 CLI应用,
  • 构建特定于Magento2的页面仓库,

Repository/PageRepository.php

  • 需要\Magento\Cms\Api\PageRepositoryInterface\Magento\Framework\Api\SearchCriteriaBuilder\Magento\Cms\Api\Data\PageInterfaceFactory类,
  • 实现主应用中的findsave方法,

命令

当前命令如下

导出

将页面从Magento 2导出到JSON格式。

bin/setup page:export [<页面ID>] [<页面ID>] ...

导入

将页面从JSON导入到Magento 2。

bin/setup page:import

作者