dev-master
9999999-devDumps an application's config to the terminal
MIT
The Requires
by Neil Smith
config zf2 cli module
1.0.0
1.0.0.0Dumps an application's config to the terminal
MIT
The Requires
by Neil Smith
config zf2 cli module
Dumps an application's config to the terminal
A Zend Framework 2 module that provides a simple method for dumping an application's current configuration array to the commend line., (*1)
This is useful when some of the applicationâs configuration is set via environment variables, as is common when using container services., (*2)
zf-config-dump can be installed with Composer. Run this command:, (*3)
composer require nsmithuk/zf-config-dump
Then you need to add ZFConfigDump
to your config/application.config.php file under the modules
key., (*4)
Once installed, call the following to get the whole config output:, (*5)
php public/index.php dump-config
, (*6)
If you only want to return the config for a specific key, you can add a filter. For example, to just return the config for your database, you can call:, (*7)
php public/index.php dump-config database
, (*8)
You can also use dot notation to access deeper keys within the config. For example, to access the value set for just the database adapter:, (*9)
php public/index.php dump-config database.adapter
, (*10)
Dumps an application's config to the terminal
MIT
config zf2 cli module
Dumps an application's config to the terminal
MIT
config zf2 cli module