Added a new profiler_markup_version to improve BC of the new toolbar

This commit is contained in:
Javier Eguiluz 2015-07-30 13:21:10 +02:00
parent 2fb33191fe
commit 5070861326
2 changed files with 3 additions and 1 deletions

View File

@ -207,6 +207,7 @@ class ProfilerController
'templates' => $this->getTemplateManager()->getTemplates($profile),
'profiler_url' => $url,
'token' => $token,
'profiler_markup_version' => 2, // 1 = original toolbar, 2 = Symfony 2.8+ toolbar
)), 200, array('Content-Type' => 'text/html'));
}

View File

@ -30,7 +30,8 @@
'collector': profile.getcollector(name),
'profiler_url': profiler_url,
'token': profile.token,
'name': name
'name': name,
'profiler_markup_version': profiler_markup_version
})
}}
{% endfor %}