Skip to content

Commit 111cac0

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

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

book/part10.rst

Lines 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)