Laravel请求生命周期
2015-07-11 10:18:33 0 举报
Laravel Request Lifecircle
作者其他创作
大纲/内容
by 2k@MOINTE
bootstrap/autoload.php
register autoloader
global variable $app
Create a new Illuminate HTTP request from server variables.
perform any final actions for the request lifecircle
browser sends request
create http kernel
bind http/console/exception interface
capture and create http request object
the most important interfaces
bootstrap/app.php
Start
register middlewares
create laravel application instance
clean up
vendor/autoload.php
load bootstrapers
send response to client
entry point for all requests; all requests are directed here by web server (apache/nginx) configuration
handle request
load composer generated autoloader to managing classes load
End
app/http/kernel.php
register compoer negrated autoloader
1.before middleware2.middlewares3.controller action/closure4.middlewares5.after middleware
public/index.php
load application/service container
0 条评论
下一页