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

Commitb088978

Browse files
committed
[HttpKernel] Clarify deprecation of non-scalar values in surrogate renderer
Update UPGRADE-3.1 tooUse non-scalar values as deperecated typeUpdate UPGRADE-4.0 too
1 parent95c60c8 commitb088978

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-
* Passingobjects as URI attributes to the ESI and SSI renderers has been
98+
* Passingnon-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 withobject attributes.
100+
renderer should be used withnon-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 passobjectsas 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 passnon-scalar valuesas URI attributes to the ESI and SSI
88+
renderershas been removed. The inline fragment renderer should be used with
89+
non-scalarattributes.
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 ($uriinstanceof ControllerReference &&$this->containsNonScalars($uri->attributes)) {
68-
@trigger_error('Passingobjects 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('Passingnon-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)

[8]ページ先頭

©2009-2025 Movatter.jp