通过更新Zend Framework 2库来跳过bin / classmap_generator.php的安装

时间:2013-04-23 10:24:33

标签: zend-framework2 updates composer-php

当我尝试在项目中更新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?

1 个答案:

答案 0 :(得分:2)

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