aubry / env-vars-debug-bundle
There is no license information available for the latest version (v1.1.1) of this package.
Symfony bundle to list all the environment variables used in parameter definitions
v1.1.1
2018-07-27 13:00 UTC
Requires
- php: ^7.1
- symfony/console: ^3.4
- symfony/framework-bundle: ^3.4
This package is not auto-updated.
Last update: 2024-10-08 17:45:45 UTC
README
Symfony bundle to list all the environment variables used in parameter definitions.
Any referenced environment variable will be listed :
- unless it contains a transformer different to the following : "int", "string", "bool"
- as mandatory unless an "env(*)" parameter is defined (see example)
Installation
composer require aubry/env-vars-debug-bundle
Register the bundle, in dev mode only :
$bundles[] = new Aubry\EnvVarsDebug\Bundle\EnvVarsDebugBundle();
Usage
bin/console aubry:debug:env-vars
Example
For the given parameters (YAML) definition :
parameters: param1: "%env(ENV_VAR_1)%" param2: "%env(int:ENV_VAR_2)%" env(ENV_VAR_3): "default value" param3: "%env(ENV_VAR_3)%"
the console command will output the following result :
Variable Mandatory Type
--------------------------- ----------- ------
ENV_VAR_1 true string
ENV_VAR_2 true int
ENV_VAR_3 false string