Upgrade framework

This commit is contained in:
2023-11-14 16:54:35 +01:00
parent 1648a5cd42
commit 4fcf6fffcc
10548 changed files with 693138 additions and 466698 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Spatie\FlareClient\FlareMiddleware;
namespace Spatie\FlareClient\FlareMiddleware;
use Closure;
use Spatie\FlareClient\Glows\GlowRecorder;
use Spatie\FlareClient\Report;
class AddGlows implements FlareMiddleware
{
protected GlowRecorder $recorder;
public function __construct(GlowRecorder $recorder)
{
$this->recorder = $recorder;
}
public function handle(Report $report, Closure $next)
{
foreach ($this->recorder->glows() as $glow) {
$report->addGlow($glow);
}
return $next($report);
}
}