简体   繁体   中英

Laminas-migration doesn't edit Zend files

I have a Zend Framework project and I want to migrate it to Laminas. I have installed the laminas-migration tool. When I run the migrate command I get no errors and everything seem to go as expected. However the script doesn't edit any of the Zend library files neither the references of Zend's functions inside my controllers. The only thing that it does is deleting all files under the vendor directory, modifies my composer files and change only some files under the library/Zend/ directory. Have I misunderstood how this tool is supposed to work?

The direct migration from Zend Framework 1 to Laminas is not possible. Zend Framework 1 is way too old for a direct migration to laminas. You have to migrate from version 1 to version 2 first. This is necessary because the differences from version 1 to version 2 are so elementary that there is no backward compatibility from version 2 to version 1.

Here is a Laminas discourse article about the migration from Zend Framework 1 to Laminas: https://discourse.laminas.dev/t/zf-1-11-migration-to-laminas/2002/3

I 'm sorry, but I guess you have to do a lot of refactoring.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM