Skip to content

Commit b5e0c9e

Browse files
committed
minor #8198 Updated the Requirements article for Symfony 4.0 (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Updated the Requirements article for Symfony 4.0 This is different from #8142, so it needs a review. Thanks! Commits ------- 0ddc1d6 Updated the Requirements article for Symfony 4.0
2 parents d3f079e + 0ddc1d6 commit b5e0c9e

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

reference/requirements.rst

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,36 @@
66
Requirements for Running Symfony
77
================================
88

9-
Symfony 3.4 requires **PHP 5.5.9** or higher to run, in addition to other minor
9+
Symfony 4.0 requires **PHP 7.1.3** or higher to run, in addition to other minor
1010
requirements. To make things simple, Symfony provides a tool to quickly check if
11-
your system meets all those requirements.
11+
your system meets all those requirements. Run this command to install the tool:
12+
13+
.. code-block:: terminal
14+
15+
$ cd your-project/
16+
$ composer require requirements-checker
1217
1318
Beware that PHP can define a different configuration for the command console and
1419
the web server, so you need to check requirements in both environments.
1520

1621
Checking Requirements for the Web Server
1722
----------------------------------------
1823

19-
Symfony includes a ``config.php`` file in the ``web/`` directory of your project.
20-
Open that file with your browser to check the requirements.
24+
The requirements checker tool creates a file called ``check.php`` in the
25+
``public/`` directory of your project. Open that file with your browser to check
26+
the requirements.
2127

22-
Once you've fixed all the reported issues, delete the ``web/config.php`` file
23-
to avoid leaking internal information about your application to visitors.
28+
Once you've fixed all the reported issues, uninstall the requirements checker
29+
to avoid leaking internal information about your application to visitors:
2430

25-
Checking Requirements for the Command Console
26-
---------------------------------------------
31+
.. code-block:: terminal
2732
28-
Open your console or terminal, enter in your project directory, execute this
29-
command and fix the reported issues:
33+
$ cd your-project/
34+
$ composer remove requirements-checker
3035
31-
.. code-block:: terminal
36+
Checking Requirements for the Command Console
37+
---------------------------------------------
3238

33-
$ cd my-project/
34-
$ php bin/symfony_requirements
39+
The requirements checker tool adds a script to your Composer configuration to
40+
check the requirements automatically. There's no need to execute any command; if
41+
there is any issue, you'll see them in the console output.

0 commit comments

Comments
 (0)