@@ -325,29 +325,32 @@ configure DoctrineBundle and other parts of Symfony:
325
325
),
326
326
));
327
327
328
- But the ``parameters.yml `` file *is * special: it contains any value that you do
329
- not want to commit to your repository or that changes on each server. Database configuration
330
- is a perfect example of both.
328
+ But the ``parameters.yml `` file *is * special: it defines the values that usually
329
+ change on each server. For example, the database credentials on your local
330
+ development machine might be different from your workmates. That's why this file
331
+ is not committed to the shared repository and is only stored on your machine.
331
332
332
333
Because of that, **parameters.yml is not committed to your version control **. In fact,
333
334
the ``.gitignore `` file that comes with Symfony prevents it from being committed.
334
335
335
336
However, a ``parameters.yml.dist `` file *is * committed (with dummy values). This file
336
- isn't read by Symfony: it's just a template for what keys the ``parameters.yml ``
337
- file you should. If you add or remove keys to ``parameters.yml ``, you should add
338
- and remove them from ``parameters.yml.dist ``.
339
-
340
- .. sidebar :: The Incenteev Parameter Handler
341
-
342
- When you clone a new project, you will need to create the ``parameters.yml ``
343
- file from the committed ``parameters.yml.dist `` file. To help with this, after
344
- you run ``composer install ``, a script will automatically create this file by
345
- interactively asking you to supply the value for each key in ``parameters.yml.dist ``.
346
- For more details - or to remove or control this behavior - see the
337
+ isn't read by Symfony: it's just a reference so that Symfony knows which parameters
338
+ need to be defined in the ``parameters.yml `` file. If you add or remove keys to
339
+ ``parameters.yml ``, add or remove them from ``parameters.yml.dist `` too so both
340
+ files are always in sync.
341
+
342
+ .. sidebar :: The Interactive Parameter Handler
343
+
344
+ When you :ref: `install an existing Symfony project <install-existing-app >`, you
345
+ will need to create the ``parameters.yml `` file using the committed ``parameters.yml.dist ``
346
+ file as a reference. To help with this, after you run ``composer install ``, a
347
+ Symfony script will automatically create this file by interactively asking you
348
+ to supply the value for each parameter defined in ``parameters.yml.dist ``. For
349
+ more details - or to remove or control this behavior - see the
347
350
`Incenteev Parameter Handler `_ documentation.
348
351
349
- Environments & the Other Config Files (e.g. config_dev.yml)
350
- -----------------------------------------------------------
352
+ Environments & the Other Config Files
353
+ -------------------------------------
351
354
352
355
You have just *one * app, but whether you realize it or not, you need it to behave
353
356
*differently * at different times:
@@ -360,9 +363,8 @@ You have just *one* app, but whether you realize it or not, you need it to behav
360
363
361
364
How can you make *one * application behave in two different ways? With *environments *.
362
365
363
- If you see the nice web debug toolbar at the bottom of your browser, then you're
364
- already running your application in the ``dev `` environment. After you deploy, you'll
365
- use the ``prod `` environment.
366
+ You've probably already been using the ``dev `` environment without even knowing it.
367
+ After you deploy, you'll use the ``prod `` environment.
366
368
367
369
To learn more about *how * to execute and control each environment, see
368
370
:doc: `/configuration/environments `.
0 commit comments