In the module.config.php files for zf-api-problem and zf-rest it says you can override 'display_exceptions' in the application config to get exception stack traces in the response.
'view_manager' => array(
// Enable this in your application configuration in order to get full
// exception stack traces in your API-Problem responses.
'display_exceptions' => false,
),
I have display_exceptions set to true in my Application module.config.php (from the skeleton app), however it gets overwritten when all the configs are merged. When I look at the state of the config in \ZF\ApiProblem\Listener\SendApiResponseListener, where the ApiProblemResponse is being constucted, 'display_exceptions' is set to false.
Is it merging in zf-api-problem and zf-rest configs after the application config and overwriting it?
How can I enable display_exceptions without changing it in the vendor modules?
When you enable development mode, The apigility copy The ./config/development.config.php.dist
to ./config/development.config.php
. This is merged with another configs. So, edit The .dist file, and disable and enable the development mode.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments