最近我已经下载并且编辑器从GIT安装了一个magento代码迁移工具包,它可以将Magento 1.x格式的模块迁移到Magento 2.0的格式,它有助于减少我们输入php,模块的时间,以及Magento 2.0模块的其他耗时代码。
但是,我一直在这里,我不知道这是什么意思......:
第一步:将Magento 1.x模块结构迁移到Magento 2.0结构(bin / migrate.php migrateModuleStructure)。
第二步:迁移Magento 1.x layout.xml Magento 2.0结构文件结构。 (bin / migrate.php convertLayout)。
第三步:迁移PHP代码(bin / migrate.php convertPhpCode)。
实际上这些步骤的“迁移”是什么意思? If you feel intersted, you also can download from here.
答案 0 :(得分:0)
对于问题中的第一步,
Step one: Migrate Magento 1.x module structure to Magento 2.0 structure (bin/migrate.php migrateModuleStructure).
用于删除代码池(核心,社区,本地),以及在单个目录中聚合模块文件。
第二步
Step two: Migrate Magento 1.x layout.xml Magento 2.0 structure file structure. (bin/migrate.php convertLayout).
是按句柄分解布局文件。它还格式化XML文件,例如块类型和块名称。
对于问题中的第三步,
Step three: Migrate PHP code (bin/migrate.php convertPhpCode).
用于按操作分解控制器。它还格式化php文件。
您可以参考下面的YouTube视频了解更多信息:
- Imagine 2016 - Developer Deep Dive: Magento 1.x to Magento 2 Code Migration Tool