视频中多次提及到依赖注入,网上答案参差不齐,群主可以阐释一下吗?或者有好的资料给我看看?
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
我觉得这两个资料不错:
http://php-di.org/doc/understanding-di.html
http://stackoverflow.com/questions/2255771/how-can-i-use-dependency-injection-in-simple-php-functions-and-should-i-bothe#answer-2553910