Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpKernel][FrameworkBundle] SSI support#10702

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromkingcrunch:ssi
Jul 25, 2014
Merged

[HttpKernel][FrameworkBundle] SSI support#10702

fabpot merged 1 commit intosymfony:masterfromkingcrunch:ssi
Jul 25, 2014

Conversation

@kingcrunch
Copy link
Contributor

QA
Bug fix?No
New feature?Yes
BC breaks?No
Deprecations?No
Tests pass?Yes
Fixed tickets#9419 (,#10684)
LicenseMIT

It does not support comments, or alternative URIs, or "continue" in case of errors. Maybe I can workaround that, but I've decided to left it out for this PR. Especially as far as I can see a "alternative URIs"-hack wouldalways lead to two requests, even if it's not needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

what about here ? shouldn't be Esi renamed too ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Couldn't decide myself (and later I forgot). Problem is, to what should I rename it? You can overwrite it in your applicationsAppCache-class with

protectedfunctioncreateSurrogate(){returnnewSsi();}

That's not perfect, but it works and is backward compatible. The other solution is to provide two separateFrameworkBundle:HttpCache\HttpCache-classes...

@stof
Copy link
Member

Please implement the featur ein a BC way, otherwise it means it cannot be merged until we move to 3.0

@kingcrunch
Copy link
ContributorAuthor

Fixed. Did I miss something?

Also do you have an idea about how to solve this? TheFrameworkBundle:HttpCache\HttpCache-class is hard-wired to theEsi class and additionally it also pushes this into the DIC. I've added a methodgetName() toEsi andSsi, so when somebody overwritescreateSurrogate() it works as at least I'd expect it, but I'm not totally happy with that.

So in my opinion it is fine for now, but maybe somebody has an idea?

Copy link
Contributor

Choose a reason for hiding this comment

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

This looks wrong, first param shouln't be optional if second is required...

Copy link
Member

Choose a reason for hiding this comment

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

it is already the existing signature.= null is not really about making the argument optional, but about making it nullable

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Exactly (I've tried it out...)

@murnieza
Copy link

Really looking forward to see this functionality in Symfony 👍

@kingcrunch
Copy link
ContributorAuthor

So, updated once more. Sorry for the inconvenience with the BC

I've mentioned in the source, that the components are deprecated since 2.5, but actually I don't really know. It's too late for 2.5, isn't?

Are there any other concerns?

@stof
Copy link
Member

@kingcrunch yes it is. 2.5 is already feature-frozen. It will come in 2.6 now

Copy link
Member

Choose a reason for hiding this comment

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

Actually, this is the "virtual" attribute.

Copy link
Member

Choose a reason for hiding this comment

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

Looks wrong to me.

@fabpot
Copy link
Member

@kingcrunch Looks good to me. Can you fix the minor issues I've mentioned in the comments? Thanks.

@fabpot
Copy link
Member

👍

@fabpot
Copy link
Member

@kingcrunch Thanks for that. Can you fix the fabbot errors (mainly about usingbool instead ofBoolean?)

Copy link
Member

Choose a reason for hiding this comment

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

this is not BC. If someone overwritescreateEsi, it is not called anymore

Copy link
Member

Choose a reason for hiding this comment

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

Good catch, you're right.

@kingcrunch
Copy link
ContributorAuthor

Rebase and pushed. Actually some days ago already, but I don't know, if it's fine to "ping" after every commit :X

@fabpot
Copy link
Member

@kingcrunch Pinging is fine, but we now need 2 +1 from the core team before being able to merge this PR.http://symfony.com/doc/current/contributing/code/core_team.html#code-development-rules

@fabpot
Copy link
Member

@kingcrunch
Copy link
ContributorAuthor

cough ping@stof@romainneutron@nicolas-grekas

@fabpot
Copy link
Member

Thank you@kingcrunch.

@fabpotfabpot merged commit06cea08 intosymfony:masterJul 25, 2014
fabpot added a commit that referenced this pull requestJul 25, 2014
This PR was merged into the 2.6-dev branch.Discussion----------[HttpKernel][FrameworkBundle] SSI support| Q             | A| ------------- | ---| Bug fix?      | No| New feature?  | Yes| BC breaks?    | No| Deprecations? | No| Tests pass?   | Yes| Fixed tickets |#9419 (,#10684)| License       | MITIt does not support comments, or alternative URIs, or "continue" in case of errors. Maybe I can workaround that, but I've decided to left it out for this PR. Especially as far as I can see a "alternative URIs"-hack would _always_ lead to two requests, even if it's not needed.Commits-------06cea08 SSI support
@pborreli
Copy link
Contributor

Thanks for this nice work@kingcrunch and all reviewers. This is a great new feature ✨ .

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

8 participants

@kingcrunch@stof@murnieza@fabpot@pborreli@stloyd@GromNaN@matthieuauger

[8]ページ先頭

©2009-2025 Movatter.jp