class TestHttpKernel in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/http-kernel/Tests/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\TestHttpKernel
- 8 vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\TestHttpKernel
Hierarchy
- class \Symfony\Component\HttpKernel\HttpKernel implements HttpKernelInterface, TerminableInterface
- class \Symfony\Component\HttpKernel\Tests\TestHttpKernel implements ControllerResolverInterface
Expanded class hierarchy of TestHttpKernel
File
- vendor/
symfony/ http-kernel/ Tests/ TestHttpKernel.php, line 20
Namespace
Symfony\Component\HttpKernel\TestsView source
class TestHttpKernel extends HttpKernel implements ControllerResolverInterface {
public function __construct() {
parent::__construct(new EventDispatcher(), $this);
}
public function getController(Request $request) {
return array(
$this,
'callController',
);
}
public function getArguments(Request $request, $controller) {
return array(
$request,
);
}
public function callController(Request $request) {
return new Response('Request: ' . $request
->getRequestUri());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpKernel:: |
protected | property | ||
HttpKernel:: |
protected | property | ||
HttpKernel:: |
protected | property | ||
HttpKernel:: |
private | function | Filters a response object. | |
HttpKernel:: |
private | function | Publishes the finish request event, then pop the request from the stack. | |
HttpKernel:: |
public | function |
Handles a Request to convert it to a Response. Overrides HttpKernelInterface:: |
3 |
HttpKernel:: |
private | function | Handles an exception by trying to convert it to a Response. | |
HttpKernel:: |
private | function | Handles a request to convert it to a response. | |
HttpKernel:: |
public | function |
Terminates a request/response cycle. Overrides TerminableInterface:: |
|
HttpKernel:: |
public | function | @internal | |
HttpKernel:: |
private | function | ||
HttpKernelInterface:: |
constant | |||
HttpKernelInterface:: |
constant | |||
TestHttpKernel:: |
public | function | ||
TestHttpKernel:: |
public | function |
Returns the arguments to pass to the controller. Overrides ControllerResolverInterface:: |
|
TestHttpKernel:: |
public | function |
Returns the Controller instance associated with a Request. Overrides ControllerResolverInterface:: |
|
TestHttpKernel:: |
public | function |
Constructor. Overrides HttpKernel:: |