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

Skip to content

Commit ab8c2c7

Browse files
committed
minor #19281 [HttpKernel] Clarify deprecation of non-scalar values in surrogate fragment renderer (chalasr)
This PR was merged into the 3.1 branch. Discussion ---------- [HttpKernel] Clarify deprecation of non-scalar values in surrogate fragment renderer | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19262 | License | MIT | Doc PR | ~ Commits ------- b088978 [HttpKernel] Clarify deprecation of non-scalar values in surrogate renderer
2 parents 95c60c8 + b088978 commit ab8c2c7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

UPGRADE-3.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ FrameworkBundle
9595
HttpKernel
9696
----------
9797

98-
* Passing objects as URI attributes to the ESI and SSI renderers has been
98+
* Passing non-scalar values as URI attributes to the ESI and SSI renderers has been
9999
deprecated and will be removed in Symfony 4.0. The inline fragment
100-
renderer should be used with object attributes.
100+
renderer should be used with non-scalar attributes.
101101

102102
* The `ControllerResolver::getArguments()` method has been deprecated and will
103103
be removed in 4.0. If you have your own `ControllerResolverInterface`

UPGRADE-4.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ FrameworkBundle
8484
HttpKernel
8585
----------
8686

87-
* Possibility to pass objects as URI attributes to the ESI and SSI renderers
88-
has been removed. The inline fragment renderer should be used with object
89-
attributes.
87+
* Possibility to pass non-scalar values as URI attributes to the ESI and SSI
88+
renderers has been removed. The inline fragment renderer should be used with
89+
non-scalar attributes.
9090

9191
* The `ControllerResolver::getArguments()` method has been removed. If you
9292
have your own `ControllerResolverInterface` implementation, you should

src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function render($uri, Request $request, array $options = array())
6565
{
6666
if (!$this->surrogate || !$this->surrogate->hasSurrogateCapability($request)) {
6767
if ($uri instanceof ControllerReference && $this->containsNonScalars($uri->attributes)) {
68-
@trigger_error('Passing objects as part of URI attributes to the ESI and SSI rendering strategies is deprecated since version 3.1, and will be removed in 4.0. Use a different rendering strategy or pass scalar values.', E_USER_DEPRECATED);
68+
@trigger_error('Passing non-scalar values as part of URI attributes to the ESI and SSI rendering strategies is deprecated since version 3.1, and will be removed in 4.0. Use a different rendering strategy or pass scalar values.', E_USER_DEPRECATED);
6969
}
7070

7171
return $this->inlineStrategy->render($uri, $request, $options);

0 commit comments

Comments
 (0)