huge refactor done
This commit is contained in:
parent
843a7b9b9b
commit
60d7de1da8
16 changed files with 472 additions and 443 deletions
|
|
@ -149,7 +149,12 @@ export class ServiceContainerBuilder {
|
|||
// Register handler infrastructure first
|
||||
container.register({
|
||||
handlerRegistry: asClass(HandlerRegistry).singleton(),
|
||||
handlerScanner: asClass(HandlerScanner).singleton(),
|
||||
handlerScanner: asFunction(({ handlerRegistry }) => {
|
||||
return new HandlerScanner(handlerRegistry, container, {
|
||||
serviceName: config.service?.serviceName || config.service?.name,
|
||||
autoRegister: true,
|
||||
});
|
||||
}).singleton(),
|
||||
});
|
||||
|
||||
registerCoreServices(container, config);
|
||||
|
|
@ -177,7 +182,7 @@ export class ServiceContainerBuilder {
|
|||
globalCache,
|
||||
proxy: proxyManager, // Map proxyManager to proxy
|
||||
browser,
|
||||
queue: queueManager, // Map queueManager to queue
|
||||
queueManager, // Provide queueManager directly
|
||||
mongodb: mongoClient, // Map mongoClient to mongodb
|
||||
postgres: postgresClient, // Map postgresClient to postgres
|
||||
questdb: questdbClient, // Map questdbClient to questdb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue