我对Laravel4和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的Autoload有点不同:
1)它实际上将使用Composer作为一些东西
2)它将使用优化标志来调用Composer
3)它将“重新编译”负载的文件,创建巨大的引导/ compile.php
4)并且还会找到您的所有Workbench包和作曲者dump-autoload它们,一个接一个。
Laravel's Autoload is a bit different:
1) It will in fact use Composer for some stuff
2) It will call Composer with the optimize flag
3) It will 'recompile' loads of files creating the huge bootstrap/compiled.php
4) And also will find all of your Workbench packages and composer dump-autoload them, one by one.
更多推荐
发布评论