File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -360,6 +360,13 @@ template access to the collected information::
360360 {
361361 return $this->data['acceptable_content_types'];
362362 }
363+
364+ // In case you want to dump collected data in the profiler
365+ // you can leverage this function
366+ public function getObject()
367+ {
368+ return $this->cloneVar($this->data['method']);
369+ }
363370 }
364371
365372In the simplest case, you want to display the information in the toolbar
@@ -463,6 +470,11 @@ must also define additional blocks:
463470 <td>{{ type }}</td>
464471 </tr>
465472 {% endfor %}
473+
474+ {# In case of specific object, you can leverage the profiler_dump() function #}
475+ <tr>
476+ {{ profiler_dump(collector.object) }}
477+ </tr>
466478 </table>
467479 {% endblock %}
468480
You can’t perform that action at this time.
0 commit comments