Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / lib / Twig / Profiler / Profile.php
index 9274da28bbb4e7b71505bd5cfa65980dc993b843..3fdc1a8ae2dbeff29142264e187dae0646ceed41 100644 (file)
@@ -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);
@@ -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);
     }
 }
+
+class_alias('Twig_Profiler_Profile', 'Twig\Profiler\Profile', false);