HttpKernelInterface implementation based on callables.
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Stack
tests
.gitignore
.travis.yml
CHANGELOG.md Preparing for 1.0.1. Jun 18, 2016
LICENSE
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

Stack/CallableHttpKernel

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!');
});