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

@@ -5,6 +5,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.js";
import { BLOG_SYMBOLS } from "./symbols.js";
import { MockArticlesRepository } from "../infrastructure/repositories/articles.repository.mock.js";
@@ -27,7 +29,12 @@ import type { IArticlesRepository } from "../application/repositories/articles.r
* Idempotent: safe to call multiple times; each call rebuilds a fresh
* populated repo and rebinds the symbol.
*/
export async function bindDevSeedBlog(tracer: ITracer, logger: ILogger): Promise<void> {
export async function bindDevSeedBlog(
tracer: ITracer,
logger: ILogger,
bus: IEventBus,
queue: IJobQueue,
): Promise<void> {
// Bind shared instrumentation into feature container
if (blogContainer.isBound(INSTRUMENTATION_SYMBOLS.TRACER)) {
blogContainer.unbind(INSTRUMENTATION_SYMBOLS.TRACER);
@@ -133,6 +140,10 @@ export async function bindDevSeedBlog(tracer: ITracer, logger: ILogger): Promise
),
),
);
// 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>
}