mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +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()) {
|
if ($isTest && isset($form) && $form['show_data']->getData()) {
|
||||||
// very ugly hack...
|
return $this->render('@ChillDocGenerator/Generator/debug_value.html.twig', [
|
||||||
dd($context->getData($template, $entity, $contextGenerationData));
|
'datas' => json_encode($context->getData($template, $entity, $contextGenerationData), JSON_PRETTY_PRINT)
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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