依赖注入的PHP实现(一)

突然好奇laravel的依赖注入是怎么实现的,翻看了下laravel的源码,发现在laravel在src/Illuminate/Routing/Route.php下的run方法中开始执行控制器方法 /** * Run the route action and return the response.
posted @ 2022-01-07 16:16  无尽的粪怒  阅读(255)  评论(0编辑  收藏  举报