File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -369,6 +369,12 @@ template access to the collected information::
369
369
{
370
370
return $this->data['acceptable_content_types'];
371
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
+ }
372
378
}
373
379
374
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
You can’t perform that action at this time.
0 commit comments