|
3 | 3 | # used by the application.
|
4 | 4 | # See http://symfony.com/doc/current/best_practices/configuration.html#canonical-parameters
|
5 | 5 | parameters:
|
| 6 | + # The code of the default language used by the application ('en' = English) |
| 7 | + locale: en |
| 8 | + |
| 9 | + # The 'secret' value is a random string of characters used by Symfony to |
| 10 | + # to add more entropy to security related operations. |
| 11 | + # see: http://symfony.com/doc/current/reference/configuration/framework.html#secret |
| 12 | + env(SYMFONY_SECRET): 'secret_value_for_symfony_demo_application' |
| 13 | + |
| 14 | + # Destination for log files; can also be "php://stderr" etc |
| 15 | + env(SYMFONY_LOG): '%kernel.logs_dir%/%kernel.environment%.log' |
| 16 | + |
6 | 17 | # this demo application uses an embedded SQLite database to simplify setup.
|
7 | 18 | # in a real Symfony application you probably will use a MySQL or PostgreSQL database
|
8 | 19 | # the path must be relative or else it will not work on Windows
|
9 | 20 | env(DATABASE_URL): 'sqlite:///%kernel.root_dir%/data/blog.sqlite'
|
10 | 21 |
|
11 |
| - # Uncomment this line to use a MySQL database instead of SQLite: |
| 22 | + # Uncomment this line to use a MySQL database instead of SQLite (and remove |
| 23 | + # the "doctrine" section from config_dev.yml regarding SQLite): |
12 | 24 | #
|
13 | 25 | # env(DATABASE_URL): 'mysql://root: [email protected]:3306/symfony_demo'
|
14 | 26 | #
|
15 |
| - # Furthermore, you must remove or comment out the "doctrine" section from config_dev.yml regarding SQLite! |
16 |
| - # |
17 |
| - # You can even create the database and load the sample data from the command line: |
| 27 | + # You can also create the database and load the sample data from the command line: |
18 | 28 | #
|
19 | 29 | # $ cd symfony-demo/
|
20 | 30 | # $ php bin/console doctrine:database:create
|
21 | 31 | # $ php bin/console doctrine:schema:create
|
22 | 32 | # $ php bin/console doctrine:fixtures:load
|
23 | 33 |
|
| 34 | + # Uncomment these parameters if your application sends emails: |
| 35 | + # |
| 36 | + # mailer_transport: smtp |
| 37 | + # mailer_host: 127.0.0.1 |
| 38 | + # mailer_user: ~ |
| 39 | + # mailer_password: ~ |
| 40 | + # |
24 | 41 | # If you don't use a real mail server, you can send emails via your Gmail account.
|
25 | 42 | # see http://symfony.com/doc/current/cookbook/email/gmail.html
|
26 |
| - mailer_transport: smtp |
27 |
| - mailer_host: 127.0.0.1 |
28 |
| - mailer_user: ~ |
29 |
| - mailer_password: ~ |
30 |
| - |
31 |
| - # The code of the default language used by the application ('en' = English) |
32 |
| - locale: en |
33 |
| - |
34 |
| - # The 'secret' value is a random string of characters, numbers and symbols |
35 |
| - # used internally by Symfony in several places (CSRF tokens, URI signing, |
36 |
| - # 'Remember Me' functionality, etc.) |
37 |
| - # see: http://symfony.com/doc/current/reference/configuration/framework.html#secret |
38 |
| - env(SYMFONY_SECRET): 'secret_value_for_symfony_demo_application' |
39 |
| - |
40 |
| - # Destination for log files; can also be "php://stderr" etc |
41 |
| - env(SYMFONY_LOG): %kernel.logs_dir%/%kernel.environment%.log |
|
0 commit comments