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::
369369 {
370370 return $this->data['acceptable_content_types'];
371371 }
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+ }
372378 }
373379
374380In the simplest case, you want to display the information in the toolbar
@@ -472,6 +478,11 @@ must also define additional blocks:
472478 <td>{{ type }}</td>
473479 </tr>
474480 {% endfor %}
481+
482+ {# use the profiler_dump() function to render the contents of dumped objects #}
483+ <tr>
484+ {{ profiler_dump(collector.someObject) }}
485+ </tr>
475486 </table>
476487 {% endblock %}
477488
You can’t perform that action at this time.
0 commit comments