Skip to content

Commit

Permalink
removed some use statement to be more consistent with previous parts
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 21, 2012
1 parent a635d89 commit 111cac0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions book/part10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ PHP; it implements ``HttpKernelInterface`` and wraps another

// example.com/web/front.php

use Symfony\Component\HttpKernel\HttpCache\HttpCache;
use Symfony\Component\HttpKernel\HttpCache\Store;

$framework = new Simplex\Framework($dispatcher, $matcher, $resolver);
$framework = new HttpCache($framework, new Store(__DIR__.'/../cache'));
$framework = new HttpKernel\HttpCache\HttpCache($framework, new HttpKernel\HttpCache\Store(__DIR__.'/../cache'));

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

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

use Symfony\Component\HttpKernel\HttpCache\ESI;

$framework = new HttpCache($framework, new Store(__DIR__.'/../cache'), new ESI());
$framework = new HttpKernel\HttpCache\HttpCache(
$framework,
new HttpKernel\HttpCache\Store(__DIR__.'/../cache'),
new HttpKernel\HttpCache\ESI()
);

.. note::

Expand Down

0 comments on commit 111cac0

Please sign in to comment.