File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,8 @@ PHP; it implements ``HttpKernelInterface`` and wraps another
50
50
51
51
// example.com/web/front.php
52
52
53
- use Symfony\Component\HttpKernel\HttpCache\HttpCache;
54
- use Symfony\Component\HttpKernel\HttpCache\Store;
55
-
56
53
$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'));
58
55
59
56
$framework->handle($request)->send();
60
57
@@ -155,9 +152,11 @@ For ESI tags to be supported by HttpCache, you need to pass it an instance of
155
152
the ``ESI `` class. The ``ESI `` class automatically parses ESI tags and makes
156
153
sub-requests to convert them to their proper content::
157
154
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
+ );
161
160
162
161
.. note ::
163
162
You can’t perform that action at this time.
0 commit comments