Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpKernel] HttpCache: remove an ESI instance checking #16970

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

Merged
merged 1 commit into from
Dec 12, 2015
Merged

[HttpKernel] HttpCache: remove an ESI instance checking #16970

merged 1 commit into from
Dec 12, 2015

Conversation

voronkovich
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets no
License MIT
Doc PR no

This checking was added by this commit 32d964b, but now it's not needed

@aitboudad
Copy link
Contributor

👍

Status: Reviewed

* @return SurrogateInterface A Surrogate instance
*/
public function getSurrogate()
{
if (!$this->surrogate instanceof Esi) {
throw new \LogicException('This instance of HttpCache was not set up to use ESI as surrogate handler. You must overwrite and use createSurrogate');
Copy link
Contributor

Choose a reason for hiding this comment

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

What is createSurrogate? I cannot find such definition. this exception still doesn't make sense to me in 2.7
Ref. #15306 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

but that is in frameworkbundle. httpkernel doesn't know about this method.

@Tobion
Copy link
Contributor

Tobion commented Dec 12, 2015

Thank you @voronkovich.

@Tobion Tobion merged commit 7528134 into symfony:3.0 Dec 12, 2015
Tobion added a commit that referenced this pull request Dec 12, 2015
…oronkovich)

This PR was merged into the 3.0 branch.

Discussion
----------

[HttpKernel] HttpCache: remove an ESI instance checking

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | no
| License       | MIT
| Doc PR        | no

This checking was added by this commit 32d964b, but now it's not needed

Commits
-------

7528134 Removed ESI instance check
@voronkovich voronkovich deleted the remove_esi_check branch December 12, 2015 00:13
@fabpot fabpot mentioned this pull request Dec 26, 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.

4 participants