“php artisan dump-autoload"之间有什么区别?和“作曲家转储自动加载"? [英] What are the Differences Between "php artisan dump-autoload" and "composer dump-autoload"?

查看:20
本文介绍了“php artisan dump-autoload"之间有什么区别?和“作曲家转储自动加载"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Laravel 4 和 Composer 还是很陌生.当我做 Laravel 4 教程时,我无法理解这两个命令之间的区别;php artisan dump-autoloadcomposer dump-autoload 他们有什么区别?

I am pretty new to Laravel 4 and Composer. While I do Laravel 4 tutorials, I couldn't understand the difference between those two commands; php artisan dump-autoload and composer dump-autoload What's the difference between them?

推荐答案

Laravel 的 Autoload 有点不同:

  1. 它实际上会使用 Composer 来处理一些 stuff

它将调用带有优化flag

它将重新编译"大量文件创建巨大的bootstrap/compiled.php

It will 'recompile' loads of files creating the huge bootstrap/compiled.php

还会一一找到你所有的 Workbench 包和 composer dump-autoload.

And also will find all of your Workbench packages and composer dump-autoload them, one by one.

这篇关于“php artisan dump-autoload"之间有什么区别?和“作曲家转储自动加载"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆