server:run Exception There are no commands defined in the “server” namespace

前端 未结 13 1430
甜味超标
甜味超标 2020-12-25 10:17

When I run the server using php bin/console server:run I get the following error. There are no commands defined in the \"server\" namespace.

<
13条回答
  •  渐次进展
    2020-12-25 10:47

    Since symfony 4.2 and newer, theres is some changes so, to works you have to do this :

    • 1: composer require symfony/web-server-bundle --dev
    • 2: php bin\console --env=dev server:run

提交回复
热议问题