Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf05af1

Browse files
committed
Merge pull request symfony#1489 from shieldo/patch-2
updated reverse proxy example to include terminate() call on the kernel
2 parents 3b570ea + ec9b07f commit bf05af1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

book/http_cache.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ kernel::
155155
$kernel->loadClassCache();
156156
// wrap the default AppKernel with the AppCache one
157157
$kernel = new AppCache($kernel);
158-
$kernel->handle(Request::createFromGlobals())->send();
158+
$request = Request::createFromGlobals();
159+
$response = $kernel->handle($request);
160+
$response->send();
161+
$kernel->terminate($request, $response);
159162

160163
The caching kernel will immediately act as a reverse proxy - caching responses
161164
from your application and returning them to the client.

0 commit comments

Comments
 (0)