@@ -23,10 +23,9 @@ to display the installed PHP version:
23
23
Installing Symfony
24
24
------------------
25
25
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.
30
29
31
30
On **Linux ** and **Mac OS X ** systems, execute the following console commands:
32
31
@@ -52,9 +51,15 @@ to be able to execute the new ``symfony`` command:
52
51
53
52
$ symfony
54
53
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:
58
63
59
64
.. code-block :: bash
60
65
@@ -90,7 +95,7 @@ the project directory and executing this command:
90
95
.. code-block :: bash
91
96
92
97
$ cd myproject/
93
- $ php app/console server:start
98
+ $ php app/console server:run
94
99
95
100
Open your browser and access the ``http://localhost:8000 `` URL to see the
96
101
Welcome page of Symfony:
@@ -166,9 +171,9 @@ that will be explained in the next section)::
166
171
}
167
172
}
168
173
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 ``.
172
177
173
178
The methods defined in a controller are called **actions **, they are usually
174
179
associated 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
230
235
.. tip ::
231
236
232
237
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.
235
241
236
242
Templates
237
243
~~~~~~~~~
@@ -348,6 +354,7 @@ Symfony makes it really easy to implement web sites better and faster. If you
348
354
are eager to learn more about Symfony, dive into the next section:
349
355
":doc: `The View <the_view >`".
350
356
351
- .. _Composer : https://getcomposer.org/
357
+ .. _Composer : https://getcomposer.org/
352
358
.. _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