如何在Magento 2中运行编译命令行

在本教程中,我们将讨论如何在“ 命令行系列”中运行“编译命令行”。如您所知,在Magento 2中,它们在中添加了许多命令bin/magento。这可能很难解决,让我解释一下如何运行编译命令行的更多细节。

如何运行编译命令行

转到Magento管理员根文件夹并显示用法:

php bin/magento setup:di:compile --help
Usage:
  setup:di:compile

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Generates DI configuration and all missing classes that can be auto-generated

解锁管理员用户的语法

php bin/magento setup:di:compile

编译输出:

Compilation was started.
Interception cache generation... 7/7 [============================] 100% 19 secs 280.0 MiB
Generated code and dependency injection configuration successfully.
赞(0)
微信
支付宝
微信二维码图片

微信扫描二维码打赏

支付宝二维码图片

支付宝扫描二维码打赏

相关文章

0 0 投票数
文章评分
订阅评论
提醒
0 评论
内联反馈
查看所有评论