美文网首页
37. 请求的生命周期

37. 请求的生命周期

作者: 独步天堂 | 来源:发表于2017-10-05 16:42 被阅读3次
  • public/index.php 文件是所有对 Laravel 应用程序的请求的入口点。

  • 所有的请求都是经由你的 Web 服务器(Apache/Nginx)通过配置引导到public/index.php 文件。

  • index.php 文件加载 Composer 生成定义的自动加载器,然后从 bootstrap/app.php 脚本中检索 Laravel 应用程序的实例。

  • Laravel 本身采取的第一个动作是创建一个 application/ service container 的实例。

相关文章

网友评论

      本文标题:37. 请求的生命周期

      本文链接:https://www.haomeiwen.com/subject/njrhyxtx.html