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 @@ -369,6 +369,13 @@ template access to the collected information::
369
369
{
370
370
return $this->data['acceptable_content_types'];
371
371
}
372
+
373
+ // In case you want to dump collected data in the profiler
374
+ // you can leverage this function
375
+ public function getObject()
376
+ {
377
+ return $this->cloneVar($this->data['method']);
378
+ }
372
379
}
373
380
374
381
In the simplest case, you want to display the information in the toolbar
@@ -472,6 +479,11 @@ must also define additional blocks:
472
479
<td>{{ type }}</td>
473
480
</tr>
474
481
{% endfor %}
482
+
483
+ {# In case of specific object, you can leverage the profiler_dump() function #}
484
+ <tr>
485
+ {{ profiler_dump(collector.object) }}
486
+ </tr>
475
487
</table>
476
488
{% endblock %}
477
489
You can’t perform that action at this time.
0 commit comments