“php artisan 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 的 Autoload 有点不同:
它实际上会使用
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.
相关文章