Skip to content

Commit 0706fca

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Profiler] [DataCollector] document `cloneVar` & `profiler_dump`
2 parents 3c77843 + 2dfcd1e commit 0706fca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

profiler.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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

374380
In 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy