Feature: [doc generation] show all the deps of the tree for debug information

This commit is contained in:
Julien Fastré 2023-02-07 15:49:57 +01:00
parent 88eefa698b
commit 5830c3e177
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 11 additions and 2 deletions

View File

@ -272,8 +272,9 @@ final class DocGeneratorTemplateController extends AbstractController
}
if ($isTest && isset($form) && $form['show_data']->getData()) {
// very ugly hack...
dd($context->getData($template, $entity, $contextGenerationData));
return $this->render('@ChillDocGenerator/Generator/debug_value.html.twig', [
'datas' => json_encode($context->getData($template, $entity, $contextGenerationData), JSON_PRETTY_PRINT)
]);
}
try {

View File

@ -0,0 +1,8 @@
<html>
<head>
<title>{{ 'Doc generator debug'|trans }}</title>
</head>
<body>
<pre>{{ datas }}</pre>
</body>
</html>