./bin/console server:run Surprise! There are no commands defined in the "server" namespace.

Let's start the built-in web server:

 
./bin/console server:run

Surprise!

There are no commands defined in the "server" namespace.

Remember: with Flex, you opt in to features. Run:

 
composer require server
 
 
 
参考:https://symfonycasts.com/screencast/symfony4-upgrade/server-isgranted

 

原文地址:https://www.cnblogs.com/Amos-Turing/p/9840519.html