S
S
smash_wp2016-02-09 12:55:49
symfony
smash_wp, 2016-02-09 12:55:49

Why are parameters not passed from parameters.yml?

The project is raised under the docker, for some reason the database connection parameters are not transferred.
Already tried everything.
parameters.yml:
1b74bf1160ad41f185dc20f50e9a0a06.png
config.yml:
e968fea011c8492ba8b2d960a3e3a03c.png
This is what Symfony writes:
35df3c316fe6442e9c250f05d848b362.png
What is written in parameters.yml from under the container:
12142dd11dd74d189322ec83f5b3169c.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Pavlov, 2016-02-09
@lexxpavlov

In parameters.yml, you need to write real values, not substitutions.

parameters:
    database_driver:   pdo_mysql
    database_host:     127.0.0.1
    database_port:     ~
    database_name:     symfony
    database_user:     root
    database_password: ~

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question