Files
sam-api/app/Services/TenantBootstrap/RecipeRegistry.php
hskwon cc206fdbed style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수
- 302개 파일 스타일 이슈 자동 수정
- 코드 로직 변경 없음 (포맷팅만)
2025-11-06 17:45:49 +09:00

39 lines
959 B
PHP

<?php
namespace App\Services\TenantBootstrap;
use App\Services\TenantBootstrap\Steps\CapabilityProfilesStep;
use App\Services\TenantBootstrap\Steps\CategoriesStep;
use App\Services\TenantBootstrap\Steps\MenusStep;
use App\Services\TenantBootstrap\Steps\SettingsStep;
class RecipeRegistry
{
/**
* 레시피마다 실행 순서 정의
*/
public function steps(string $recipe = 'STANDARD'): array
{
return match ($recipe) {
'LITE' => [
new CapabilityProfilesStep,
new CategoriesStep,
],
default => [ // STANDARD
new CapabilityProfilesStep,
new CategoriesStep,
new MenusStep,
new SettingsStep,
],
};
}
public function version(string $recipe = 'STANDARD'): int
{
return match ($recipe) {
'LITE' => 1,
default => 1,
};
}
}