【发布时间】:2014-09-13 10:43:39
【问题描述】:
我正在使用 Laravel 中的存储库模式和接口,发现命名很冗长:UserRepositoryInterface 或 EventRepositoryInterface。是否还有其他不那么冗长的命名约定?我希望我的代码对未来的程序员保持可读性。在 DDD 中,有些人建议将 UserRepositoryInterface 简单命名为 Users 或 AllUsers,更多信息请参见:How to name repository and service interfaces?。
【问题讨论】:
标签: php laravel interface repository naming