chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Framework\CommandBus\Middleware;
use App\Framework\CommandBus\Middleware;
use App\Framework\Performance\PerformanceCategory;
use App\Framework\Performance\PerformanceMeter;
final readonly class PerformanceMonitoringMiddleware implements Middleware
{
public function __construct(
private PerformanceMeter $meter
) {}
public function handle(object $command, callable $next): mixed
{
$this->meter->startMeasure($command::class, PerformanceCategory::SYSTEM);
$result = $next($command);
$this->meter->endMeasure($command::class);
return $result;
}
}