Files
sam-api/app/Services/TenantBootstrap/RecipeRegistry.php
권혁성 45a207d4a8 feat: [결재] 테넌트 부트스트랩에 기본 결재 양식 자동 시딩 추가
- ApprovalFormsStep 신규 생성 (proposal, expenseReport, expenseEstimate, attendance_request, reason_report)
- RecipeRegistry STANDARD 레시피에 등록
- 테넌트 생성 시 TenantObserver → TenantBootstrapper로 자동 실행
- 기존 테넌트는 php artisan tenants:bootstrap --all로 적용

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 21:06:10 +09:00

41 lines
1.1 KiB
PHP

<?php
namespace App\Services\TenantBootstrap;
use App\Services\TenantBootstrap\Steps\ApprovalFormsStep;
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, // Disabled: Use MenuBootstrapService in RegisterService instead
new SettingsStep,
new ApprovalFormsStep,
],
};
}
public function version(string $recipe = 'STANDARD'): int
{
return match ($recipe) {
'LITE' => 1,
default => 1,
};
}
}