*/ protected array $storageServices = [ PageAttachmentService::class, ]; /** * Repository 인터페이스와 구현체 매핑 * * @var array */ protected array $repositories = [ PageRepositoryInterface::class => PageRepository::class, PageVersionRepositoryInterface::class => PageVersionRepository::class, PageAttachmentRepositoryInterface::class => PageAttachmentRepository::class, ]; /** * 서비스 부트스트랩 */ public function boot(): void { parent::boot(); // Artisan 커맨드 등록 (콘솔 환경에서만) if ($this->app->runningInConsole()) { $this->commands([ PlaywrightSeedPage::class, PruneTempAttachmentsCommand::class, ]); } // Sitemap 기여자 등록 $this->app->booted(function () { if ($this->app->bound(SitemapGenerator::class)) { // Repository 주입을 위해 컨테이너로 해석합니다. $this->app->make(SitemapGenerator::class)->registerContributor( $this->app->make(PageSitemapContributor::class) ); } }); } }