Laravel 5 Naming Conventions - Broker VS Manager

这一生的挚爱 提交于 2019-12-24 11:49:12

问题


Broker - is a word that sometimes comes into the naming convention, at least we have a PasswordBroker.

But more often they are Managers like in - Support\Manager and Queue\Capsule\Manager...

What is the difference? When it should be Broker?

PS

I know that Laravel people for some reson don't like the word interface and say Contract instead. Is it the same here?

来源:https://stackoverflow.com/questions/51489562/laravel-5-naming-conventions-broker-vs-manager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!