Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4ad3c44

Browse files
javiereguiluzweaverryan
authored andcommitted
[quick_tour] second pass to the "big picture" chapter
1 parente7dfc8b commit4ad3c44

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

‎quick_tour/the_big_picture.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Installing Symfony2
99
-------------------
1010

1111
First, check that the PHP version installed on your computer meets the Symfony2
12-
requirements: 5.3.3 or higher. Then, open acommandconsole and execute the
13-
followingcommand to install the latest version of Symfony2 in the ``myproject/``
12+
requirements: 5.3.3 or higher. Then, open a console and execute the following
13+
command to install the latest version of Symfony2 in the ``myproject/``
1414
directory:
1515

1616
..code-block::bash
@@ -145,7 +145,7 @@ will be executed. In the next section, you'll learn exactly what that means.
145145

146146
..tip::
147147

148-
In addition to YAMLformat, routes can be configured in XML or PHP files
148+
In addition to YAMLfiles, routes can be configured in XML or PHP files
149149
and even embedded in PHP annotations. This flexibility is one of the main
150150
features of Symfony2, a framework that never imposes you a particular
151151
configuration format.
@@ -162,7 +162,7 @@ controller might create the response by hand, based on the request::
162162

163163
use Symfony\Component\HttpFoundation\Response;
164164

165-
$name = $request->query->get('name');
165+
$name = $request->get('name');
166166

167167
return new Response('Hello '.$name);
168168

@@ -322,11 +322,13 @@ environment.
322322

323323
.. _quick-tour-big-picture-environments-intro:
324324

325-
So what *is* an environment? An:term:`Environment` is a simple string (e.g.
326-
``dev`` or ``prod``) that represents a group of configuration that's used
327-
to run your application.
325+
So what *is* an environment? An:term:`Environment` represents a group of
326+
configuration that's used to run your application. Symfony2 defines by default
327+
two environments: ``dev`` (suited for when developing the application locally)
328+
and ``prod`` (optimized for when executing the application on production).
328329

329-
Typically, you put your common configuration in ``config.yml`` and override
330+
Typically, the environments share a large amount of configuration options. For
331+
that reason, you put your common configuration in ``config.yml`` and override
330332
where necessary in the specific configuration file for each environment:
331333

332334
..code-block::yaml
@@ -340,8 +342,8 @@ where necessary in the specific configuration file for each environment:
340342
intercept_redirects:false
341343
342344
In this example, the ``dev`` environment loads the ``config_dev.yml`` configuration
343-
file, which itself imports theglobal ``config.yml`` file and then modifies it by
344-
enabling the web debug toolbar.
345+
file, which itself imports thecommon ``config.yml`` file and then modifies it
346+
byenabling the web debug toolbar.
345347

346348
When you visit the ``app_dev.php`` file in your browser, you're executing
347349
your Symfony application in the ``dev`` environment. To visit your application

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp