Skip to content

Commit 665f1df

Browse files
committed
minor #400 Updated some help notes for parameters.yml.dist (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Updated some help notes for parameters.yml.dist * Short params have been moved at the top of the file because `env(DATABASE_URL)` is too long and hides them * `env(SYMFONY_LOG)` value is now wrapped in quotes to avoid deprecations * Simplified `env(SYMFONY_SECRET)` description * Commented the params related to the mailer (because the mailer is already disabled in the application) Commits ------- d44b8fe Updated some help notes for parameters.yml.dist
2 parents 84de97a + d44b8fe commit 665f1df

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

app/config/parameters.yml.dist

+21-20
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,40 @@
33
# used by the application.
44
# See http://symfony.com/doc/current/best_practices/configuration.html#canonical-parameters
55
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+
617
# this demo application uses an embedded SQLite database to simplify setup.
718
# in a real Symfony application you probably will use a MySQL or PostgreSQL database
819
# the path must be relative or else it will not work on Windows
920
env(DATABASE_URL): 'sqlite:///%kernel.root_dir%/data/blog.sqlite'
1021

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):
1224
#
1325
# env(DATABASE_URL): 'mysql://root:[email protected]:3306/symfony_demo'
1426
#
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:
1828
#
1929
# $ cd symfony-demo/
2030
# $ php bin/console doctrine:database:create
2131
# $ php bin/console doctrine:schema:create
2232
# $ php bin/console doctrine:fixtures:load
2333

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+
#
2441
# If you don't use a real mail server, you can send emails via your Gmail account.
2542
# 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

Comments
 (0)