feat(blog): bind binders accept (bus, queue) params

This commit is contained in:
2026-05-08 15:17:40 +02:00
parent b0bd4c0bb3
commit d6fe37450a
5 changed files with 29 additions and 5 deletions

View File

@@ -6,6 +6,8 @@ import {
type ITracer,
type ILogger,
} from "@repo/core-shared/instrumentation";
import type { IEventBus } from "@repo/core-events";
import type { IJobQueue } from "@repo/core-shared/jobs";
import { blogContainer } from "./container";
import { BLOG_SYMBOLS } from "./symbols";
import { ArticlesRepository } from "../infrastructure/repositories/articles.repository";
@@ -20,6 +22,8 @@ export function bindProductionBlog(
config: SanitizedConfig,
tracer: ITracer,
logger: ILogger,
bus: IEventBus,
queue: IJobQueue,
): void {
// Bind shared instrumentation into feature container
if (blogContainer.isBound(INSTRUMENTATION_SYMBOLS.TRACER)) {
@@ -131,6 +135,10 @@ export function bindProductionBlog(
),
),
);
// bus + queue are accept-and-forward in Phase 6; consumed by Phase 7 generator
// output at the <gen:event-handlers> / <gen:jobs> anchors below.
void bus;
void queue;
// <gen:event-handlers>
// <gen:jobs>
}