We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9fb72f4 + 09ccaf4 commit 2dfcd1eCopy full SHA for 2dfcd1e
profiler.rst
@@ -369,6 +369,12 @@ template access to the collected information::
369
{
370
return $this->data['acceptable_content_types'];
371
}
372
+
373
+ public function getSomeObject()
374
+ {
375
+ // use the cloneVar() method to dump collected data in the profiler
376
+ return $this->cloneVar($this->data['method']);
377
+ }
378
379
380
In the simplest case, you want to display the information in the toolbar
@@ -472,6 +478,11 @@ must also define additional blocks:
472
478
<td>{{ type }}</td>
473
479
</tr>
474
480
{% endfor %}
481
482
+ {# use the profiler_dump() function to render the contents of dumped objects #}
483
+ <tr>
484
+ {{ profiler_dump(collector.someObject) }}
485
+ </tr>
475
486
</table>
476
487
{% endblock %}
477
488
0 commit comments