Skip to content

Commit

Permalink
Implement reset method in BlockDataCollector
Browse files Browse the repository at this point in the history
Since Symfony 3.4 classes implementing DataCollectorInterface should implement reset() method.
  • Loading branch information
mzstic committed Oct 23, 2017
1 parent ce9d49f commit c0e27bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Profiler/DataCollector/BlockDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
}

0 comments on commit c0e27bb

Please sign in to comment.