Laravel_V5_request
2016-05-12 09:45:22 7 举报
laravel V5 request
作者其他创作
大纲/内容
send responeto client
clean up
Create laravelApplicationinstance
Registermiddlewares
Register autoload
LoadApplicationservicecontainer
包含以下几方面before middlewaremiddlewarescontroller action/closuremiddlewaresafter middleware
app/http/kernal.php
vendor/autoload.php
loadbootstrapers
bootstrap/autoload.php
Kernal terminate
所有请求的入口
bootstrap/app.php
capture and create http request object 包含内容1:configure error handling 配置错误信息2:loading configuration 加载配置3:configure logs 配置日志4:detect application environment 检测程序环境5:register facades 注册门面6:register providers 注册服务提供者 例如:bootstrap database validation等7:boot providers 启动服务提供者
bind http/console/exception interface
Register composernegratedautoload
public/index.php
capture and create httprequest object
CreateHTTPKernal
通过composer的autoload控制加载类
handlerequest
1:所有的请求进入HTTP kernal或者console kernal2:处理Request,产生Response
0 条评论
回复 删除
下一页