`registerConfiguredProviders` 方法到底是哪个父类的?
public function bootstrap(Application $app)
{
$app->registerConfiguredProviders();
}
这里面的 $app 的路径是Illuminate\Contracts\Foundation\Application;
为何文章中说的是Illuminate\Foundation\Application; class 的registerConfiguredProviders 方法 ???
答:我自己的问题,把大家带偏了,总知道怎么回事了。
``` public function bootstrapWith(array $bootstrappers) { $this->hasBeenBootstrapped = true;
``` 就是在容器中自己实现了