【问题标题】:Why doesn't the command "php bin/console make:user" work? [closed]为什么命令“php bin/console make:user”不起作用? [关闭]
【发布时间】:2020-10-31 03:32:29
【问题描述】:

我正在关注指南Symfony Security

当我输入 php bin/console make:user 时,我得到了这个错误:

Command "make:user" is not defined.
                                    
Did you mean one of these?
    make: admin: crud
    make: admin: dashboard
    make: admin: migration

【问题讨论】:

    标签: php symfony


    【解决方案1】:

    首先,请确保您同时安装了 maker bundle 和 security bundle。只是为了确保同时运行:

    composer require symfony/security-bundle
    composer require symfony/maker-bundle --dev
    

    如果错误仍然存​​在,请运行 php bin/console make:user -vvv 以查看堆栈跟踪。 https://symfony.com/doc/current/console/verbosity.html

    【讨论】:

      【解决方案2】:

      首先你必须安装 MakeBundle:

      "composer 需要 symfony/maker-bundle --dev"

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-09-03
        • 1970-01-01
        • 2017-07-19
        • 2016-04-14
        相关资源
        最近更新 更多