projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Profiler
/
Profile.php
diff --git
a/vendor/twig/twig/lib/Twig/Profiler/Profile.php
b/vendor/twig/twig/lib/Twig/Profiler/Profile.php
index 9274da28bbb4e7b71505bd5cfa65980dc993b843..3fdc1a8ae2dbeff29142264e187dae0646ceed41 100644
(file)
--- a/
vendor/twig/twig/lib/Twig/Profiler/Profile.php
+++ b/
vendor/twig/twig/lib/Twig/Profiler/Profile.php
@@
-145,6
+145,12
@@
class Twig_Profiler_Profile implements IteratorAggregate, Serializable
);
}
);
}
+ public function reset()
+ {
+ $this->starts = $this->ends = $this->profiles = array();
+ $this->enter();
+ }
+
public function getIterator()
{
return new ArrayIterator($this->profiles);
public function getIterator()
{
return new ArrayIterator($this->profiles);
@@
-160,3
+166,5
@@
class Twig_Profiler_Profile implements IteratorAggregate, Serializable
list($this->template, $this->name, $this->type, $this->starts, $this->ends, $this->profiles) = unserialize($data);
}
}
list($this->template, $this->name, $this->type, $this->starts, $this->ends, $this->profiles) = unserialize($data);
}
}
+
+class_alias('Twig_Profiler_Profile', 'Twig\Profiler\Profile', false);