10000 Tweaks · symfony/symfony-docs@09ccaf4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 09ccaf4

Browse files
committed
Tweaks
1 parent 0296633 commit 09ccaf4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

profiler.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,9 @@ template access to the collected information::
361361
return $this->data['acceptable_content_types'];
362362
}
363363

364-
// In case you want to dump collecte C0B8 d data in the profiler
365-
// you can leverage this function
366-
public function getObject()
364+
public function getSomeObject()
367365
{
366+
// use the cloneVar() method to dump collected data in the profiler
368367
return $this->cloneVar($this->data['method']);
369368
}
370369
}
@@ -471,9 +470,9 @@ must also define additional blocks:
471470
</tr>
472471
{% endfor %}
473472

474-
{# In case of specific object, you can leverage the profiler_dump() function #}
473+
{# use the profiler_dump() function to render the contents of dumped objects #}
475474
<tr>
476-
{{ profiler_dump(collector.object) }}
475+
{{ profiler_dump(collector.someObject) }}
477476
</tr>
478477
</table>
479478
{% endblock %}

0 commit comments

Comments
 (0)
0