Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug all parameters on environments in Symfony?

Tags:

symfony

I would like to debug my Symfony parameters on specific environments by getting a table with all of them, and their values like:

Parameter  | prod  | dev  | foo   | -----------|-------|------|-------| appname    | toto  | titi | tata  | isonline   | true  | true | true  |  // Inheritance appears firstname  | undef | Bob  | Bob   |  // No values appears 

Do you know if there is a feature/bundle/command to do that ? This is really necessary when you come to get more than 5 environments with different configurations. I'm not closed to develop it by myself, but I didn't get the way to load parameters from a file and to list all configuration files in a clean and language agnostic way.

like image 342
maxime Avatar asked Dec 21 '15 12:12

maxime


1 Answers

As @Matteo said in comment, you could use the command below to see all your parameters

php bin/console debug:container --parameters --env=prod 

But there is not any command to list all your parameters from all your environments, you have to make a script (bash script with grep and the command above) or a Symfony command to get exactly what you want.

like image 66
D. Schreier Avatar answered Sep 28 '22 21:09

D. Schreier