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

This commit is contained in:
2023-02-07 15:49:57 +01:00
parent 88eefa698b
commit 5830c3e177
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 {