Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo Esi in part create framework #5556

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions create_framework/http-kernel-httpkernelinterface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ sub-requests to convert them to their proper content::
$framework = new HttpKernel\HttpCache\HttpCache(
$framework,
new HttpKernel\HttpCache\Store(__DIR__.'/../cache'),
new HttpKernel\HttpCache\ESI()
new HttpKernel\HttpCache\Esi()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also fix the namespace (the Symfony\Component part is missing and there is no use statement for it)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's merge this PR as-is

);

.. note::
Expand All @@ -166,7 +166,7 @@ When using complex HTTP caching strategies and/or many ESI include tags, it
can be hard to understand why and when a resource should be cached or not. To
ease debugging, you can enable the debug mode::

$framework = new HttpCache($framework, new Store(__DIR__.'/../cache'), new ESI(), array('debug' => true));
$framework = new HttpCache($framework, new Store(__DIR__.'/../cache'), new Esi(), array('debug' => true));

The debug mode adds a ``X-Symfony-Cache`` header to each response that
describes what the cache layer did:
Expand Down