How can I get a list of all kernel parameters that are available for use in my configuration files. E.g., in config.yml I know I can access %kernel.debug% which either returns true or false depending on AppKernel's initialization in the app.php (or app_dev.php) file.
>=3.0 (or lower if using 3.0 directory structure)
List all parameters in the containerphp bin/console debug:container --parameters
For *nix use grep to limit resultsphp bin/console debug:container --parameters | grep kernel
View a specific parameterphp bin/console debug:container --parameter=kernel.debug
>=2.6 <3.0 (if not using 3.0 directory structure)
List all parameters in the containerphp app/console debug:container --parameters
For *nix use grep to limit resultsphp app/console debug:container --parameters | grep kernel
View a specific parameterphp app/console debug:container --parameter=kernel.debug
>=2.3 <=2.5
List all parameters in the containerphp app/console container:debug --parameters
For *nix use grep to limit resultsphp app/console container:debug --parameters | grep kernel
View a specific parameterphp app/console container:debug --parameter=kernel.debug
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With