【文件属性】:
文件名称:stack-request-id:用于将请求ID添加到您的Symfony请求的中间件
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-10 23:55:24
PHP
堆栈请求号
用于将请求ID添加到您的Symfony请求的中间件
安装
首先,将此项目添加到项目的composer.json中
$ composer require qandidate/stack-request-id ^1.0
配置
更新您的app.php以包括中间件:
前:
use Symfony \ Component \ HttpFoundation \ Request ;
$ kernel = new AppKernel ( $ env , $ debug );
$ kernel -> loadClassCache ();
$ request = Request :: createFromGlobals ();
$ response = $ kernel -> handle ( $ request );
$ response -> send ();
$ kernel -> te
【文件预览】:
stack-request-id-master
----.gitignore(23B)
----src()
--------Qandidate()
----.travis.yml(148B)
----LICENSE(1KB)
----composer.json(989B)
----CHANGELOG.md(5KB)
----README.md(3KB)
----.github_changelog_generator(21B)
----phpunit.xml.dist(624B)
----test()
--------Qandidate()