[HttpKernel] Clarify deprecation of non-scalar values in surrogate renderer

Update UPGRADE-3.1 too
Use non-scalar values as deperecated type
Update UPGRADE-4.0 too
This commit is contained in:
Robin Chalas 2016-07-04 13:11:13 +02:00
parent 95c60c8413
commit b08897842c
3 changed files with 6 additions and 6 deletions

View File

@ -95,9 +95,9 @@ FrameworkBundle
HttpKernel
----------
* Passing objects as URI attributes to the ESI and SSI renderers has been
* Passing non-scalar values 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.
renderer should be used with non-scalar attributes.
* The `ControllerResolver::getArguments()` method has been deprecated and will
be removed in 4.0. If you have your own `ControllerResolverInterface`

View File

@ -84,9 +84,9 @@ FrameworkBundle
HttpKernel
----------
* Possibility to pass objects as URI attributes to the ESI and SSI renderers
has been removed. The inline fragment renderer should be used with object
attributes.
* Possibility to pass non-scalar values as URI attributes to the ESI and SSI
renderers has been removed. The inline fragment renderer should be used with
non-scalar attributes.
* The `ControllerResolver::getArguments()` method has been removed. If you
have your own `ControllerResolverInterface` implementation, you should

View File

@ -65,7 +65,7 @@ abstract class AbstractSurrogateFragmentRenderer extends RoutableFragmentRendere
{
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 since version 3.1, and will be removed in 4.0. Use a different rendering strategy or pass scalar values.', E_USER_DEPRECATED);
@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);
}
return $this->inlineStrategy->render($uri, $request, $options);