“php artisan dump

系统教程 行业动态 更新时间:2024-06-14 16:59:46
“php artisan dump-autoload”和“composer dump-autoload”之间有什么区别?(What are the Differences Between “php artisan dump-autoload” and “composer dump-autoload”?)

我对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.

更多推荐

本文发布于:2023-04-17 08:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/5c4d4fae8fa55baef288e9576f00e1d0.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:php   artisan   dump

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!