Skip to content

Commit 7b45999

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Improved PHP-FPM section to list the common patterns to find a front controller fix displaying `empty_data` option for hidden field Improved tip message to make it more clear that the index.html takes precedence over the index.php Adds block about PHP-FPM behaviour
2 parents f2335df + 9ff13c7 commit 7b45999

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

reference/forms/types/hidden.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
5757
.. include:: /reference/forms/types/options/data.rst.inc
5858

5959
.. include:: /reference/forms/types/options/empty_data.rst.inc
60+
:end-before: DEFAULT_PLACEHOLDER
61+
62+
The default value is ``''`` (the empty string).
63+
64+
.. include:: /reference/forms/types/options/empty_data.rst.inc
65+
:start-after: DEFAULT_PLACEHOLDER
6066

6167
.. include:: /reference/forms/types/options/error_mapping.rst.inc
6268

setup/symfony_server.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,24 @@ run the Symfony server in the background:
5757
# show the latest log messages
5858
$ symfony server:log
5959
60+
Enabling PHP-FPM
61+
----------------
62+
63+
When the server starts it will check for common patterns like ``web/app.php``,
64+
``web/app_dev.php`` or ``public/index.php``. If a file like this is found the
65+
server will automatically start with PHP-FPM enabled. Otherwise the server will
66+
start without PHP-FPM and will show a ``Page not found`` page when trying to
67+
access a ``.php`` file in the browser.
68+
69+
.. tip::
70+
71+
When an ``index.html`` and a front controller like e.g. ``index.php`` are
72+
both present the server will still start with PHP-FPM enabled but the
73+
``index.html`` will take precedence over the front controller. This means
74+
when an ``index.html`` file is present in ``public`` or ``web``, it will be
75+
displayed instead of the ``index.php`` which would show e.g. the Symfony
76+
application.
77+
6078
Enabling TLS
6179
------------
6280

0 commit comments

Comments
 (0)