Skip to content

h4cc/CallableHttpKernel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

HttpKernelInterface implementation based on callables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published