From c0e27bb22e545099ecf131e28fc3f2344ae5a625 Mon Sep 17 00:00:00 2001 From: Martin Patera Date: Mon, 23 Oct 2017 23:57:45 +0200 Subject: [PATCH] Implement reset method in BlockDataCollector Since Symfony 3.4 classes implementing DataCollectorInterface should implement reset() method. --- Profiler/DataCollector/BlockDataCollector.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Profiler/DataCollector/BlockDataCollector.php b/Profiler/DataCollector/BlockDataCollector.php index 2e940fc83..c7c25f963 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 = []; + } }