Zend Framework 升级到Zend Framework2的解决方案?

WBOY
Release: 2016-06-06 20:22:47
Original
1146 people have browsed it

刚接手没多久的项目,用ZF1写的。之前一直用ZF2,想把ZF1升级到ZF2.
项目不太复杂。目测应该可以升级。
目前已经将:namespace转化完毕。但是受不了namespacer.phar生成的

<code>use Zend_Db_Table;</code>
Copy after login
Copy after login

这样的写法,想统一替换成

<code>use Zend\Db\Table;

现在想将composer机制引入,有人给出比较完整的解决方案麽?(我知道没有银弹).

</code>
Copy after login
Copy after login

回复内容:

刚接手没多久的项目,用ZF1写的。之前一直用ZF2,想把ZF1升级到ZF2.
项目不太复杂。目测应该可以升级。
目前已经将:namespace转化完毕。但是受不了namespacer.phar生成的

<code>use Zend_Db_Table;</code>
Copy after login
Copy after login

这样的写法,想统一替换成

<code>use Zend\Db\Table;

现在想将composer机制引入,有人给出比较完整的解决方案麽?(我知道没有银弹).

</code>
Copy after login
Copy after login

没有完美的 ZF1 => ZF2,只能手动重构。

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!