"php artisan dump-autoload"和"php artisan dump-autoload"之间有什么区别?和"composer dump-autoload"? [英] What are the Differences Between "php artisan dump-autoload" and "composer dump-autoload"?
问题描述
我对Laravel 4和Composer还是陌生的.当我编写Laravel 4教程时,我无法理解这两个命令之间的区别. php artisan dump-autoload
和composer 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的自动加载功能有所不同:
Laravel's Autoload is a bit different:
1)实际上它将使用Composer进行某些操作
1) It will in fact use Composer for some stuff
2)它将使用优化标志调用Composer
2) It will call Composer with the optimize flag
3)它将重新编译"大量文件,从而创建巨大的bootstrap/compiled.php
3) It will 'recompile' loads of files creating the huge bootstrap/compiled.php
4)并且还将找到您的所有Workbench软件包,并通过composer逐一转储-自动加载它们.
4) And also will find all of your Workbench packages and composer dump-autoload them, one by one.
这篇关于"php artisan dump-autoload"和"php artisan dump-autoload"之间有什么区别?和"composer dump-autoload"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!