Symfony 4 - No route found after installation on Mac

时间:2018-03-09 19:08:08

标签: php symfony composer-php symfony4

I have tried to install the Symfony 4 on my Macbook Air by using Composer. I have used the below commands for installing and running Symfony application

composer create-project symfony/website-skeleton symfony4

cd symfony4

composer require server --dev

php bin/console server:run

And then tried to access the application in http://127.0.0.1:8000/. Below is the error message

Error screen

Below image shows the error in which line and file

enter image description here

I am using PHP 7.2.3 and installed by using Homebrew. At the same time when I use the below command to install, Symfony welcome page appears without any error.

composer create-project symfony/skeleton symfony4

2 个答案:

答案 0 :(得分:2)

创建新的symfony flex应用程序时,没有默认的欢迎页面,并且已经有issuepull request

一切正常,你没有任何页面。

答案 1 :(得分:2)

在这里,您可以阅读如何创建symfony页面:https://symfony.com/doc/current/page_creation.html