1

当我尝试在我的项目中更新 ZF2 时,我收到以下警告:

# php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing zendframework/zendframework (2.1.5)
    Loading from cache

    Skipped installation of bin/classmap_generator.php for package zendframework/zendframework: name conflicts with an existing file
zendframework/zendframework suggests installing doctrine/common (Doctrine\Common >=2.1 for annotation features)
zendframework/zendframework suggests installing ext-intl (ext/intl for i18n features)
zendframework/zendframework suggests installing ircmaxell/random-lib (Fallback random byte generator for Zend\Math\Rand if OpenSSL/Mcrypt extensions are unavailable)
zendframework/zendframework suggests installing pecl-weakref (Implementation of weak references for Zend\Stdlib\CallbackHandler)
zendframework/zendframework suggests installing zendframework/zendpdf (ZendPdf for creating PDF representations of barcodes)
zendframework/zendframework suggests installing zendframework/zendservice-recaptcha (ZendService\ReCaptcha for rendering ReCaptchas in Zend\Captcha and/or Zend\Form)
Writing lock file
Generating autoload files

这里出了什么问题?这些冲突的原因是什么?如何正确更新 ZF2?

4

1 回答 1

3

通常没什么好担心的,最可能的解释是您删除了 zendframework(或您的整个供应商目录)并忘记删除 bin/classmap_generator.php 文件,因此它看到它已经存在并跳过该文件的安装。

于 2013-04-23T10:44:55.763 回答