@@ -20,15 +20,21 @@ Symfony provides a dedicated application called the **Symfony Installer** to eas
2020the creation of Symfony applications. This installer is a PHP 5.4 compatible
2121executable that needs to be installed on your system only once:
2222
23+ **Linux and macOS systems **:
24+
25+ .. class :: command-linux
2326.. code-block :: terminal
2427
25- # Linux and macOS systems
2628 $ sudo mkdir -p /usr/local/bin
2729 $ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
2830 $ sudo chmod a+x /usr/local/bin/symfony
2931
30- # Windows systems
31- c:\> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
32+ **Windows systems **:
33+
34+ .. class :: command-windows
35+ .. code-block :: terminal
36+
37+ > php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
3238
3339 .. note ::
3440
@@ -37,21 +43,22 @@ executable that needs to be installed on your system only once:
3743 environment variable and create a ``symfony.bat `` file to create the global
3844 command or move it to any other directory convenient for you:
3945
46+ .. class :: command-windows
4047 .. code-block :: terminal
4148
4249 # for example, if WAMP is used ...
43- c:\ > move symfony c:\wamp\bin\php
50+ > move symfony c:\wamp\bin\php
4451 # create symfony.bat in the same folder
45- c:\ > cd c:\wamp\bin\php
46- c:\ > (echo @ECHO OFF & echo php "%~dp0symfony" %*) > symfony.bat
52+ > cd c:\wamp\bin\php
53+ > (echo @ECHO OFF & echo php "%~dp0symfony" %*) > symfony.bat
4754 # ... then, execute the command as:
48- c:\ > symfony
55+ > symfony
4956
5057 # moving it to your projects folder ...
51- c:\ > move symfony c:\projects
58+ > move symfony c:\projects
5259 # ... then, execute the command as
53- c:\ > cd projects
54- c:\projects\ > php symfony
60+ > cd projects
61+ > php symfony
5562
5663 .. _installation-creating-the-app :
5764
0 commit comments