[PHP][Symfony] Update Controller.mustache (#6842)

* Update Controller.mustache

* Use debug instead of environment
This commit is contained in:
cydrickn 2017-11-09 16:29:41 +08:00 committed by wing328
parent 92a1c3a449
commit fbc28797d1

View File

@ -135,6 +135,12 @@ class Controller
if (null === $exception) {
return null;
}
if (!$this->container->get('kernel')->isDebug()) {
return [
'message' => $exception->getMessage(),
];
}
return [
'message' => $exception->getMessage(),