duanqiao2225
2013-11-09 17:29
浏览 341
已采纳

composer会自动创建vendor / autoload.php吗?

I'm trying to get the hang of using composer as a library I've downloaded requires it.

I've run composer and all the dependencies appear to have downloaded, however the autoload file isn't present in vendor. Instead of an autoload there's a few empty folders starting from

vendor/symfony/event-dispatcher/symfony/component

Is there something else I need to do?

During the composer install there was one problem encountered regarding being unable to download a file from

nodeload.github.com/symfony/evendispatcher/zip/SomeRandomString

图片转代码服务由CSDN问答提供 功能建议

我正试图将使用作曲家作为我下载的库需要它。

我已经运行了作曲家,并且所有依赖项似乎都已下载,但供应商中不存在自动加载文件。 从

  vendor / symfony / event-dispatcher / symfony / component 
   
 
开始,有一些空文件夹,而不是自动加载。  

我还需要做些什么吗?

在作曲家安装过程中,遇到了一个无法从 nodeload.github.com/symfony/evendispatcher/zip/SomeRandomString

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongyue4964 2013-11-09 17:56
    已采纳

    http://getcomposer.org/doc/00-intro.md#autoloading

    From this it seems as if autoload.php should be automatically created by the dependency resolve process. You might want to check your software sources deprecation status and update package manager lists if necessary (assuming you running a *nix machine). Perhaps local file permissions, as well, could be causing the write/create process to fail.

    打赏 评论

相关推荐 更多相似问题