stack/callable-http-kernel
Composer 安装命令:
composer require stack/callable-http-kernel
包简介
HttpKernelInterface implementation based on callables.
关键字:
README 文档
README
HttpKernelInterface implementation based on callables.
It's mostly useful to test stack middlewares, and to mock the HttpKernelInterface on the fly.
Example
use Stack\CallableHttpKernel;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$app = new CallableHttpKernel(function (Request $request) {
return new Response('Hello World!');
});
统计信息
- 总下载量: 40.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 1
- 依赖项目数: 23
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-16