Skip to content

Commit e5c9143

Browse files
Remove the post-make report renderer setters
The renderer is injected via the FlareProvider (and Reporter) constructor, so the Reporter::reportRenderer() setter and Flare::renderReportsUsing() are dead. Removed both; the renderer is now constructor-only, like mode.
1 parent 20a6c92 commit e5c9143

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

src/Flare.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,6 @@ public function filterReportsUsing(Closure $filterReportsCallable): static
166166
return $this;
167167
}
168168

169-
/**
170-
* @param Closure(ReportFactory): void $renderReportCallable
171-
*/
172-
public function renderReportsUsing(Closure $renderReportCallable): static
173-
{
174-
$this->reporter->reportRenderer($renderReportCallable);
175-
176-
return $this;
177-
}
178-
179169
public function cache(): CacheRecorder|null
180170
{
181171
return $this->recorders->getRecorder(RecorderType::Cache->value);

src/Reporter.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,6 @@ public function registerErrorHandler(?int $errorLevels = null): self
7777
return $this;
7878
}
7979

80-
public function reportRenderer(Closure $renderReportCallable): static
81-
{
82-
$this->reportRenderer = $renderReportCallable;
83-
84-
return $this;
85-
}
86-
8780
/**
8881
* @param Closure(ReportFactory $report):void|null $callback
8982
*/

0 commit comments

Comments
 (0)