mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Feature: [doc generation] show all the deps of the tree for debug information
This commit is contained in:
parent
88eefa698b
commit
5830c3e177
@ -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 {
|
||||
|
@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ 'Doc generator debug'|trans }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<pre>{{ datas }}</pre>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user