From b82328d14e5bc76a9207f6d70a079b00e86fedb6 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 22 Jun 2017 14:30:54 -0500 Subject: [PATCH 1/2] Add new symfony4 site type to homestead documentation --- setup/homestead.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup/homestead.rst b/setup/homestead.rst index cd3948fe375..df1dc36624b 100644 --- a/setup/homestead.rst +++ b/setup/homestead.rst @@ -50,9 +50,11 @@ configuration: sites: - map: symfony-demo.dev to: /home/vagrant/projects/symfony_demo/web - type: symfony + type: symfony4 -The ``type`` option tells Homestead to use the Symfony nginx configuration. +The ``type`` option tells Homestead to use the Symfony nginx configuration. +Homestead now supports a Symfony2 web layout with app.php and app_dev.php when +using type: symfony2 and an index.php layout when using type: symfony4. At last, edit the hosts file on your local machine to map ``symfony-demo.dev`` to ``192.168.10.10`` (which is the IP used by Homestead):: From c9491fbd14e2e3d66e5a5f0e935591cb21bbabb8 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 5 Sep 2017 22:05:08 -0500 Subject: [PATCH 2/2] update to show new public doc root instead of web --- setup/homestead.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/homestead.rst b/setup/homestead.rst index df1dc36624b..42fd7424e8a 100644 --- a/setup/homestead.rst +++ b/setup/homestead.rst @@ -49,11 +49,11 @@ configuration: # ... sites: - map: symfony-demo.dev - to: /home/vagrant/projects/symfony_demo/web + to: /home/vagrant/code/symfony_demo/public type: symfony4 The ``type`` option tells Homestead to use the Symfony nginx configuration. -Homestead now supports a Symfony2 web layout with app.php and app_dev.php when +Homestead now supports a Symfony2 front controller layout of app.php and app_dev.php when using type: symfony2 and an index.php layout when using type: symfony4. At last, edit the hosts file on your local machine to map ``symfony-demo.dev``