Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf05af1

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

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎book/http_cache.rst

Copy file name to clipboardExpand all lines: book/http_cache.rst
+4-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.