command?->info('코어 본인인증 정책 시딩 시작...'); $helper = app(IdentityPolicySyncHelper::class); $policies = config('core.identity_policies', []); $definedKeys = []; if (empty($policies)) { $this->command?->warn('config/core.php 에 identity_policies 선언이 없습니다.'); return; } foreach ($policies as $key => $data) { $data = array_merge($data, [ 'key' => $key, 'source_type' => 'core', 'source_identifier' => 'core', ]); $helper->syncPolicy($data); $definedKeys[] = $key; $this->command?->line(" ✓ {$key}"); } $removed = $helper->cleanupStalePolicies('core', 'core', $definedKeys); if ($removed > 0) { $this->command?->line(" - stale 정책 {$removed}개 정리"); } $this->command?->info('코어 본인인증 정책 시딩 완료: '.count($definedKeys).'개'); } }