最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Clean architecture, where to place ports that are not used by use cases - Stack Overflow

programmeradmin1浏览0评论

All my ports are inside the application/ports folder. But now i have the port "EnvLoaderPort", with this code: export abstract class EnvLoaderPort { abstract loadEnv(): Promise<void>; }

this port is not used in any use case in the application layer, it is just implemented by the framework layer, and then used in the bootstrap that init the code.

Is it right to put the port in the application folder, even if it is not used by it?

发布评论

评论列表(0)

  1. 暂无评论