$params */ public function handle(Request $request, array $params): Response { $csrf = $request->cookies['__csrf'] ?? ''; $scenarioId = $params['id'] ?? 'new'; $width = 8; $height = 8; ob_start(); require_once __DIR__ . '/../../Views/layout.php'; require __DIR__ . '/../../Views/battlefield-editor.php'; $body = (string) ob_get_clean(); return Response::html(200, $body); } }