This commit is contained in:
Chirag Aggarwal 2025-11-18 12:50:22 +05:30
parent c2645be4e1
commit 5a8a900b18

View file

@ -44,13 +44,13 @@ class Specs extends Action
}
protected function getFormatInstance(string $format, array $arguments)
{
return match ($format) {
'swagger2' => new Swagger2(...$arguments),
'open-api3' => new OpenAPI3(...$arguments),
default => throw new Exception('Format not found: ' . $format)
};
}
{
return match ($format) {
'swagger2' => new Swagger2(...$arguments),
'open-api3' => new OpenAPI3(...$arguments),
default => throw new Exception('Format not found: ' . $format)
};
}
public function __construct()
{