diff --git a/Profiler/DataCollector/BlockDataCollector.php b/Profiler/DataCollector/BlockDataCollector.php index 2e940fc8..c7c25f96 100644 --- a/Profiler/DataCollector/BlockDataCollector.php +++ b/Profiler/DataCollector/BlockDataCollector.php @@ -177,4 +177,15 @@ public function getName() { return 'block'; } + + /** + * Resets this data collector to its initial state. + */ + public function reset() + { + $this->blocks = []; + $this->containers = []; + $this->realBlocks = []; + $this->events = []; + } }