feat(media): bind binders accept (bus, queue) params
This commit is contained in:
@@ -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 { mediaContainer } from "./container.js";
|
||||
import { MEDIA_SYMBOLS } from "./symbols.js";
|
||||
import { MockMediaRepository } from "../infrastructure/repositories/media.repository.mock.js";
|
||||
@@ -27,7 +29,12 @@ import type { IMediaRepository } from "../application/repositories/media.reposit
|
||||
* Idempotent: safe to call multiple times; each call rebuilds a fresh
|
||||
* populated repo and rebinds the symbol.
|
||||
*/
|
||||
export async function bindDevSeedMedia(tracer: ITracer, logger: ILogger): Promise<void> {
|
||||
export async function bindDevSeedMedia(
|
||||
tracer: ITracer,
|
||||
logger: ILogger,
|
||||
bus: IEventBus,
|
||||
queue: IJobQueue,
|
||||
): Promise<void> {
|
||||
// Bind shared instrumentation into feature container
|
||||
if (mediaContainer.isBound(INSTRUMENTATION_SYMBOLS.TRACER)) {
|
||||
mediaContainer.unbind(INSTRUMENTATION_SYMBOLS.TRACER);
|
||||
@@ -133,6 +140,10 @@ export async function bindDevSeedMedia(tracer: ITracer, logger: ILogger): Promis
|
||||
),
|
||||
),
|
||||
);
|
||||
// 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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user