@@ -23,10 +23,9 @@ to display the installed PHP version:
2323Installing Symfony
2424------------------
2525
26- In the past, Symfony had to be installed manually for each new project. In order
27- to simplify this set up, a new **Symfony Installer ** was introduced recently.
28- This means that the very first time you use Symfony on a computer, you have to
29- install the Symfony Installer.
26+ In the past, Symfony had to be installed manually for each new project. Now you
27+ can use the **Symfony Installer **, which has to be installed the very first time
28+ you use Symfony on a computer.
3029
3130On **Linux ** and **Mac OS X ** systems, execute the following console commands:
3231
@@ -52,9 +51,15 @@ to be able to execute the new ``symfony`` command:
5251
5352 $ symfony
5453
55- On **Windows ** systems, download the ``symfony.phar `` file from ........... and
56- save it into the directory where you create the Symfony projects. Then you can
57- execute the Symfony installer right away with this command:
54+ On **Windows ** systems, execute the following console command:
55+
56+ .. code-block :: bash
57+
58+ c:\> php -r " readfile('https://symfony.com/installer');" | php
59+
60+ This command downloads a file called ``symfony.phar `` which contains the Symfony
61+ installer. Save or move that file to the directory where you create the Symfony
62+ projects and then, execute the Symfony installer right away with this command:
5863
5964.. code-block :: bash
6065
@@ -90,7 +95,7 @@ the project directory and executing this command:
9095.. code-block :: bash
9196
9297 $ cd myproject/
93- $ php app/console server:start
98+ $ php app/console server:run
9499
95100 Open your browser and access the ``http://localhost:8000 `` URL to see the
96101Welcome page of Symfony:
@@ -166,9 +171,9 @@ that will be explained in the next section)::
166171 }
167172 }
168173
169- In Symfony applications, **controllers ** are PHP classes whose names are suffixed
170- with the ``Controller `` word. In this example, the controller is called `` Default ``
171- and the PHP class is called ``DefaultController ``.
174+ In Symfony applications, **controllers ** are usually PHP classes whose names are
175+ suffixed with the ``Controller `` word. In this example, the controller is called
176+ `` Default `` and the PHP class is called ``DefaultController ``.
172177
173178The methods defined in a controller are called **actions **, they are usually
174179associated with one URL of the application and their names are suffixed with
@@ -230,8 +235,9 @@ of the ``Default`` controller when the user browses the ``/`` path of the applic
230235.. tip ::
231236
232237 In addition to PHP annotations, routes can be configured in YAML, XML or
233- PHP files. This flexibility is one of the main features of Symfony, a
234- framework that never imposes a particular configuration format on you.
238+ PHP files, as explained in `the Routing chapter of the Symfony book `_ .
239+ This flexibility is one of the main features of Symfony, a framework that
240+ never imposes a particular configuration format on you.
235241
236242Templates
237243~~~~~~~~~
@@ -348,6 +354,7 @@ Symfony makes it really easy to implement web sites better and faster. If you
348354are eager to learn more about Symfony, dive into the next section:
349355":doc: `The View <the_view >`".
350356
351- .. _Composer : https://getcomposer.org/
357+ .. _Composer : https://getcomposer.org/
352358.. _executable installer : http://getcomposer.org/download
353- .. _Twig : http://twig.sensiolabs.org/
359+ .. _Twig : http://twig.sensiolabs.org/
360+ .. _the Routing chapter of the Symfony book : http://symfony.com/doc/current/book/routing.html
0 commit comments