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 111cac0

Browse filesBrowse files
committed
removed some use statement to be more consistent with previous parts
1 parent a635d89 commit 111cac0
Copy full SHA for 111cac0

File tree

Expand file treeCollapse file tree

1 file changed

+6
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-7
lines changed

‎book/part10.rst

Copy file name to clipboardExpand all lines: book/part10.rst
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ PHP; it implements ``HttpKernelInterface`` and wraps another
5050

5151
// example.com/web/front.php
5252

53-
use Symfony\Component\HttpKernel\HttpCache\HttpCache;
54-
use Symfony\Component\HttpKernel\HttpCache\Store;
55-
5653
$framework = new Simplex\Framework($dispatcher, $matcher, $resolver);
57-
$framework = new HttpCache($framework, new Store(__DIR__.'/../cache'));
54+
$framework = new HttpKernel\HttpCache\HttpCache($framework, new HttpKernel\HttpCache\Store(__DIR__.'/../cache'));
5855

5956
$framework->handle($request)->send();
6057

@@ -155,9 +152,11 @@ For ESI tags to be supported by HttpCache, you need to pass it an instance of
155152
the ``ESI`` class. The ``ESI`` class automatically parses ESI tags and makes
156153
sub-requests to convert them to their proper content::
157154

158-
use Symfony\Component\HttpKernel\HttpCache\ESI;
159-
160-
$framework = new HttpCache($framework, new Store(__DIR__.'/../cache'), new ESI());
155+
$framework = new HttpKernel\HttpCache\HttpCache(
156+
$framework,
157+
new HttpKernel\HttpCache\Store(__DIR__.'/../cache'),
158+
new HttpKernel\HttpCache\ESI()
159+
);
161160

162161
.. note::
163162

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.