- 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>
41 lines
1.1 KiB
PHP
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,
|
|
};
|
|
}
|
|
}
|