We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2750adb commit aa9b86eCopy full SHA for aa9b86e
src/Symfony/Component/HttpKernel/Client.php
@@ -19,6 +19,7 @@
19
use Symfony\Component\BrowserKit\Cookie as DomCookie;
20
use Symfony\Component\BrowserKit\History;
21
use Symfony\Component\BrowserKit\CookieJar;
22
+use Symfony\Component\HttpKernel\TerminableInterface;
23
24
/**
25
* Client simulates a browser and makes requests to a Kernel object.
@@ -57,7 +58,13 @@ public function __construct(HttpKernelInterface $kernel, array $server = array()
57
58
*/
59
protected function doRequest($request)
60
{
- return $this->kernel->handle($request);
61
+ $response = $this->kernel->handle($request);
62
+
63
+ if ($this->kernel instanceof TerminableInterface) {
64
+ $this->kernel->terminate($request, $response);
65
+ }
66
67
+ return $response;
68
}
69
70
0 commit comments