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

Skip to content

[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

Conversation

jakzal
Copy link
Contributor

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

@fabpot
Copy link
Member

fabpot commented Jan 31, 2016

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);
Copy link
Member

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.

@jakzal jakzal force-pushed the deprecate-passing-objects-as-esi-renderer-attributes branch from 422ad9a to cd2412b Compare January 31, 2016 11:31
@jakzal
Copy link
Contributor Author

jakzal commented Jan 31, 2016

Addressed the comments.


* 3.1.0

* bug #17611 [HttpKernel] Deprecate passing objects as URI attributes to the ESI and SSI renderers
Copy link
Member

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.

@fabpot
Copy link
Member

fabpot commented Jan 31, 2016

👍

@jakzal jakzal force-pushed the deprecate-passing-objects-as-esi-renderer-attributes branch from cd2412b to 105d3cc Compare January 31, 2016 11:36
@jakzal jakzal force-pushed the deprecate-passing-objects-as-esi-renderer-attributes branch from 105d3cc to a38d96e Compare January 31, 2016 11:38
@fabpot
Copy link
Member

fabpot commented Jan 31, 2016

Thank you @jakzal.

@fabpot fabpot merged commit a38d96e into symfony:master Jan 31, 2016
fabpot added a commit that referenced this pull request Jan 31, 2016
…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
@jakzal jakzal deleted the deprecate-passing-objects-as-esi-renderer-attributes branch January 31, 2016 19:32

* 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.
Copy link
Member

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

Copy link
Contributor Author

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 :)

fabpot added a commit that referenced this pull request Feb 12, 2016
…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
@fabpot fabpot mentioned this pull request May 13, 2016
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