forked from loafle/openapi-generator-original
[PHP][Symfony] Update Controller.mustache (#6842)
* Update Controller.mustache * Use debug instead of environment
This commit is contained in:
parent
92a1c3a449
commit
fbc28797d1
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user