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

This commit is contained in:
2026-05-08 16:07:05 +02:00
parent 4e77134ff6
commit 2b4e576b0d
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 { navigationContainer } from "./container.js";
import { NAVIGATION_SYMBOLS } from "./symbols.js";
import { MockHeaderRepository } from "../infrastructure/repositories/header.repository.mock.js";
@@ -24,7 +26,12 @@ import type { IHeaderRepository } from "../application/repositories/header.repos
* Idempotent: safe to call multiple times; each call rebuilds a fresh
* populated repo and rebinds the symbol.
*/
export async function bindDevSeedNavigation(tracer: ITracer, logger: ILogger): Promise<void> {
export async function bindDevSeedNavigation(
tracer: ITracer,
logger: ILogger,
bus: IEventBus,
queue: IJobQueue,
): Promise<void> {
// Bind shared instrumentation into feature container
if (navigationContainer.isBound(INSTRUMENTATION_SYMBOLS.TRACER)) {
navigationContainer.unbind(INSTRUMENTATION_SYMBOLS.TRACER);
@@ -77,6 +84,10 @@ export async function bindDevSeedNavigation(tracer: ITracer, logger: ILogger): P
),
),
);
// 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>
}