8000 BC changes tested in Symfony Demo install · symfony/symfony@53b5f18 · GitHub
[go: up one dir, main page]

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

+3-1
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

+1-1
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

+1-1
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)
0