fixed profiler unicity when several ones are registered

This commit is contained in:
Fabien Potencier
2018-03-03 07:46:21 -08:00
parent caf2caa8f4
commit 7b2bdbe351
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
* 1.35.2 (2018-XX-XX)
* n/a
* fixed a regression in the way the profiler is registered in templates
* 1.35.1 (2018-03-02)
+1 -1
View File
@@ -55,7 +55,7 @@ class Twig_Profiler_NodeVisitor_Profiler extends Twig_BaseNodeVisitor
private function getVarName()
{
return sprintf('__internal_%s', hash('sha256', __METHOD__));
return sprintf('__internal_%s', hash('sha256', $this->extensionName));
}
public function getPriority()