2025-08-22 15:57:44 +09:00
|
|
|
<?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' => [
|
2025-11-06 17:45:49 +09:00
|
|
|
new CapabilityProfilesStep,
|
|
|
|
|
new CategoriesStep,
|
2025-08-22 15:57:44 +09:00
|
|
|
],
|
|
|
|
|
default => [ // STANDARD
|
2025-11-06 17:45:49 +09:00
|
|
|
new CapabilityProfilesStep,
|
|
|
|
|
new CategoriesStep,
|
2025-11-10 09:35:43 +09:00
|
|
|
// new MenusStep, // Disabled: Use MenuBootstrapService in RegisterService instead
|
2025-11-06 17:45:49 +09:00
|
|
|
new SettingsStep,
|
2025-08-22 15:57:44 +09:00
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function version(string $recipe = 'STANDARD'): int
|
|
|
|
|
{
|
|
|
|
|
return match ($recipe) {
|
|
|
|
|
'LITE' => 1,
|
|
|
|
|
default => 1,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|