-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers #17611
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
[HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers #17611
Conversation
jakzal
commented
Jan 30, 2016
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | yes |
Tests pass? | yes |
Fixed tickets | #15056 |
License | MIT |
Doc PR | - |
9b18306
to
422ad9a
Compare
Can you update the CHANGELOG and UPGRADE files? |
@@ -64,6 +64,10 @@ public function __construct(SurrogateInterface $surrogate = null, FragmentRender | |||
public function render($uri, Request $request, array $options = array()) | |||
{ | |||
if (!$this->surrogate || !$this->surrogate->hasSurrogateCapability($request)) { | |||
if ($uri instanceof ControllerReference && $this->containsNonScalars($uri->attributes)) { | |||
@trigger_error('Passing objects as part of URI attributes to the ESI and SSI rendering strategies is deprecated. Use another rendering strategy or use scalar values.', E_USER_DEPRECATED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should mention that this is deprecated as of 3.1 and that this possibility will be removed in 4.0.
422ad9a
to
cd2412b
Compare
Addressed the comments. |
|
||
* 3.1.0 | ||
|
||
* bug #17611 [HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is auto-generated. I meant the CHANGELOG file for the HttpKernel Component instead. Sorry for the confusion.
👍 |
cd2412b
to
105d3cc
Compare
105d3cc
to
a38d96e
Compare
Thank you @jakzal. |
…es to the ESI and SSI renderers (jakzal) This PR was merged into the 3.1-dev branch. Discussion ---------- [HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #15056 | License | MIT | Doc PR | - Commits ------- a38d96e [HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers
|
||
* Passing objects as URI attributes to the ESI and SSI renderers has been | ||
deprecated and will be removed in Symfony 4.0. The inline fragment | ||
renderer should be used with object attributes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing entry about the removal in the UPGRADE-4.0.md
file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not removed yet :)
…jects to ESI and SSI renderers (jakzal) This PR was merged into the 3.1-dev branch. Discussion ---------- [HttpKernel] Document the removed possibility to pass objects to ESI and SSI renderers | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Forgotten in #17611. Commits ------- 73216c9 [HttpKernel] Document the removed possibility to pass objects to ESI and SSI renderers