[HttpKernel][WIP] Implement SSI rendering strategy #6720
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Well, it works, but I added the
[WIP]
-tag, because it "feels" incomplete. It currently implements SSI-support into theHttpKernel
similar to the ESI-support, but more likeHInclude
(withoutHttpCache
). This way it is only possible to (depending on the configuration) always render the SSI-tag, or never (including corresponding "missing render strategy"-exception). This makes it hard to use during development, where SSI may or may not be parsed.The things I felt uncomfortable with:
HttpCache
-class. It doesn't feel "clean" to do the same with SSI right next to ESI. Especially what happens, when both where used (unusual, but possible)?EsiResponseCacheStrategyInterface
for example). I would have copy and pasted them, but there must be better solutions.At the end the main-point is, that both behave quite similar and I think there must be a way to implement both, so that they share most of the code and are useable simultaneously. I hope, it is clear, whats on my mind. Would like to hear some opinions before going on 😄 I think the "share code" is not thaaat hard, but requires to rename several classes, interfaces and methods. However, the "both were enabled and used at once" makes me thinking...