运行PHP的内置服务器和Symfony的PHP服务器之间的区别


Difference between running PHP's built-in server and Symfony's PHP Server

当使用Windows CMD运行PHP时,两者之间有什么区别吗:

c:'projects'php-project-root> php app/console server:run

和:

c:'projects'php-project-root> php -S localhost:8000

内置服务器是PHP服务器的包装器,为方便起见,有一些额外的选项。例如,您可以指定文档根或路由器选项。