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

Fix typo Esi in part create framework #5556

wants to merge 1 commit into from

Conversation

nicolasdewez
Copy link

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets

Name for Esi class was wrong : ESI -> Esi

@OskarStark
Copy link
Contributor

👍 you are right

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpKernel\HttpCache;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;

/**
 * Esi implements the ESI capabilities to Request and Response instances.
 *
 * For more information, read the following W3C notes:
 *
 *  * ESI Language Specification 1.0 (http://www.w3.org/TR/esi-lang)
 *
 *  * Edge Architecture Specification (http://www.w3.org/TR/edge-arch)
 *
 * @author Fabien Potencier <[email protected]>
 */
class Esi implements SurrogateInterface
{
    private $contentTypes;
...

@weaverryan
Copy link
Member

👍

@@ -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

@wouterj
Copy link
Member

wouterj commented Jul 28, 2015

Wow, this error isn't even discovered by PHP, but you found it and fixed it. Thanks!

wouterj added a commit that referenced this pull request Jul 28, 2015
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5556).

Discussion
----------

Fix typo Esi in part create framework

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Name for Esi class was wrong : ESI -> Esi

Commits
-------

43e06c3 Fix typo Esi in part create framework
@wouterj wouterj closed this Jul 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants