Wire admin studio SSR and search infrastructure
This commit is contained in:
@@ -13,6 +13,7 @@ final class SitemapPublishService
|
||||
private readonly SitemapReleaseCleanupService $cleanup,
|
||||
private readonly SitemapReleaseManager $releases,
|
||||
private readonly SitemapReleaseValidator $validator,
|
||||
private readonly SitemapStaticPublisher $staticPublisher,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -59,7 +60,12 @@ final class SitemapPublishService
|
||||
$this->releases->activate($releaseId);
|
||||
$deleted = $this->cleanup->cleanup();
|
||||
|
||||
return $manifest + ['cleanup_deleted' => $deleted];
|
||||
$staticResult = [];
|
||||
if ($this->staticPublisher->enabled()) {
|
||||
$staticResult = $this->staticPublisher->publish($releaseId);
|
||||
}
|
||||
|
||||
return $manifest + ['cleanup_deleted' => $deleted, 'static_published' => $staticResult];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user