Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show used config and parameter files

Tags:

symfony

Is there a way to show via command line in symfony to show which all config-files and parameter-files are used in a specific environment?

Can't find anything in the docs.

like image 685
craphunter Avatar asked Aug 08 '17 08:08

craphunter


People also ask

What is parameter in configuration file?

Configuration files contain parameters that define values such as the resources allocated to the DB2 database products and to individual databases, and the diagnostic level. There are two types of configuration files: The database manager configuration file for each DB2 instance.

Where are configuration files usually located?

Most global config files are located in the /etc directory. The /etc/ directory feels more like a filesystem and has many sub-directories, each having related config files.

What is .config file in user?

A configuration file, often shortened to config file, defines the parameters, options, settings and preferences applied to operating systems (OSes), infrastructure devices and applications in an IT context. Software and hardware devices can be profoundly complex, supporting myriad options and parameters.


1 Answers

As far as I know - there is no such command. But you can use command

php bin/console debug:config

to see your current configuration. If you run it without parameters, output will have list of bundles. You can pick name from that list and will be able to see parameters of specific bundle.

There is also this command

php bin/console debug:container --parameters

which will output parameters.

You can also manually traverse configuration. Symfony transparently loads config_<env>.yml, which imports all other files, including config.yml

like image 179
svgrafov Avatar answered Nov 15 '22 10:11

svgrafov