开发者

Should my ArticleService take care of authorization?

开发者 https://www.devze.com 2023-03-18 07:02 出处:网络
I\'m wondering if my service which is a layer between my ArticleRepository (Doctrine 2) and my Controller (Zend Framework) should take care of authentification/authorization or it should be part of an

I'm wondering if my service which is a layer between my ArticleRepository (Doctrine 2) and my Controller (Zend Framework) should take care of authentification/authorization or it should be part of another Service/Layer?

I w开发者_开发技巧ondering because I need to use my service to both in a Zf controller for a website and as an API for remote client.

Feedbacks?

0

精彩评论

暂无评论...
验证码 换一张
取 消