The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

displayErrorDetails = true

Marlon Schultz's Avatar

Marlon Schultz

17 Dec, 2015 03:14 PM

If I setup displayErrorDetails in the container and then check the defaultSettings within the container, the value is still set to false. Is this handled somewhere else ?

$configuration = [
'settings' => [ 'displayErrorDetails' => true, ], ]; $container = new \Slim\Container($configuration); $containerManager = new dependencies($container); // returns \Slim\Container $app = new \Slim\App($containerManager->getContainer());

is giving me for a var_dump of $container:

private 'defaultSettings' => array (size=5) 'httpVersion' => string '1.1' (length=3) 'responseChunkSize' => int 4096 'outputBuffering' => string 'append' (length=6) 'determineRouteBeforeAppMiddleware' => boolean false 'displayErrorDetails' => boolean false private 'values' (Pimple\Container) => array (size=12) 'settings' => ....etcetcblabla

Using Slim 3.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac