Skip to content

Commit 53b5f18

Browse files
author
jelte
committed
BC changes tested in Symfony Demo install
1 parent 54bbc7d commit 53b5f18

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Symfony/Bridge/Twig/Profiler/TwigProfileData.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
namespace Symfony\Bridge\Twig\Profiler;
1313

14-
class TwigProfileData
14+
use Symfony\Component\Profiler\ProfileData\ProfileDataInterface;
15+
16+
class TwigProfileData implements ProfileDataInterface
1517
{
1618
private $profile;
1719
private $computed;

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
{% if templates is defined %}
3737
<ul id="menu-profiler">
3838
{% for name, template in templates %}
39-
{% set menu %}{{ template.renderBlock('menu', { 'collector': profile.getcollector(name)}) }}{% endset %}
39+
{% set menu %}{{ template.renderBlock('menu', { 'collector': profile.get(name)}) }}{% endset %}
4040
{% if menu != '' %}
4141
<li class="{{ name }}{% if name == panel %} selected{% endif %}">
4242
<a href="{{ path('_profiler', { 'token': token, 'panel': name }) }}">{{ menu|raw }}</a>

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div id="sfToolbarMainContent-{{ token }}" class="sf-toolbarreset clear-fix" data-no-turbolink>
2828
{% for name, template in templates %}
2929
{{ template.renderblock('toolbar', {
30-
'collector': profile.getcollector(name),
30+
'collector': profile.get(name),
3131
'profiler_url': profiler_url,
3232
'token': profile.token,
3333
'name': name

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