collector->startTiming($commandKey, PerformanceCategory::SYSTEM, [ 'command_class' => $command::class, ]); $result = $next($command); $this->collector->endTiming($commandKey); return $result; } }