This article introduces type-casting and some convenient operators which can be used inside the env()
helper in the Symfony configs. Everything's clear except the resolve:
operator. The article says:
The resolve: operator replaces container parameter names by their values:
What I am going to have the parameters whose names are taken from the values of the env variables? What's the point?
It's used in the doctrine bundle's config, for example:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
# With Symfony 3.3, remove the `resolve:` prefix
url: '%env(resolve:DATABASE_URL)%'
I was googling the issue, but it's almost no info on the Internet, and it doesn't clarify anything to me.